8000 update application integration toolset agent based on new toolset int… · Syntax404-coder/adk-python@7220288 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7220288

Browse files
seanzhougooglecopybara-github
authored andcommitted
update application integration toolset agent based on new toolset interface
PiperOrigin-RevId: 757963384
1 parent 57d1315 commit 7220288
8000

File tree

1 file changed

+2
-3
lines changed
  • contributing/samples/application_integration_agent

1 file changed

+2
-3
lines changed

contributing/samples/application_integration_agent/agent.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from google.adk.agents.llm_agent import LlmAgent
2121
from google.adk.tools.application_integration_tool import ApplicationIntegrationToolset
2222

23-
2423
# Load environment variables from .env file
2524
load_dotenv()
2625

@@ -29,7 +28,7 @@
2928
connection_location = os.getenv("CONNECTION_LOCATION")
3029

3130

32-
jira_tool = ApplicationIntegrationToolset(
31+
jira_toolset = ApplicationIntegrationToolset(
3332
project=connection_project,
3433
location=connection_location,
3534
connection=connection_name,
@@ -46,5 +45,5 @@
4645
If there is an error in the tool response, understand the error and try and see if you can fix the error and then and execute the tool again. For example if a variable or parameter is missing, try and see if you can find it in the request or user query or default it and then execute the tool again or check for other tools that could give you the details.
4746
If there are any math operations like count or max, min in the user request, call the tool to get the data and perform the math operations and then return the result in the response. For example for maximum, fetch the list and then do the math operation.
4847
""",
49-
tools=jira_tool.get_tools(),
48+
tools=[jira_toolset],
5049
)

0 commit comments

Comments
 (0)
0