mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2025-07-13 23:17:35 -06:00

-- e1c479d037d37e1ee1ddd86a4cd180f2692d952f by Karthigayan Devan <karthidec@gmail.com>: add jira_agent adk samples code which connect Jira cloud -- ef9fe57538252ad69f825f3ff77023b1f9eb004f by Karthigayan Devan <karthidec@gmail.com>: update variables comment -- f6adaaddd2decdd1e35aa06ba88031ec3b8a8521 by Karthigayan Devan <karthidec@gmail.com>: renamed tool name to match exactly align with tool naming standard, removed keyword -- 150e63d4270b141e21195c5be7d67dce72e216fb by Karthigayan Devan <karthidec@gmail.com>: updated tool and agent instructions -- 5048043195a5b1d397d9d439b3f6c6e650b4a6a3 by Karthigayan Devan <karthidec@gmail.com>: add image application integration -- bf3ee1553929d6d031f7b14f0b28f8f0ae7b84cc by Karthigayan Devan <karthidec@gmail.com>: update read me instructions on configure app integration connector COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/785 from karthidec:adk-samples-jira-agent 2b984fa8c242e164541353b4597aebf4fd422288 PiperOrigin-RevId: 765351338
35 lines
1.2 KiB
Python
35 lines
1.2 KiB
Python
# Copyright 2025 Google LLC
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
from google.adk.tools.application_integration_tool.application_integration_toolset import ApplicationIntegrationToolset
|
|
|
|
jira_tool = ApplicationIntegrationToolset(
|
|
project="your-gcp-project-id", # replace with your GCP project ID
|
|
location="your-regions", # replace your regions
|
|
connection="your-integration-connection-name", #replace with your connection name
|
|
entity_operations={
|
|
"Issues": ["GET", "LIST"],
|
|
},
|
|
actions=[
|
|
"get_issue_by_key",
|
|
],
|
|
tool_name="jira_conversation_tool",
|
|
tool_instructions="""
|
|
|
|
This tool is to call an integration to search for issues in JIRA
|
|
|
|
""",
|
|
|
|
)
|