Update agent_tool.py

This commit is contained in:
seanzhou1023
2025-07-11 15:34:07 -07:00
committed by GitHub
parent 7de173ed90
commit c6c6f34429
+1 -1
View File
@@ -116,7 +116,7 @@ class AgentTool(BaseTool):
artifact_service=ForwardingArtifactService(tool_context),
session_service=InMemorySessionService(),
memory_service=InMemoryMemoryService(),
credential_service=tool_context.credential_service,
credential_service=tool_context._invocation_context.credential_service,
)
session = await runner.session_service.create_session(
app_name=self.agent.name,