Merge pull request #1829 from matino:expose_credential_service

PiperOrigin-RevId: 782150305
This commit is contained in:
Copybara-Service
2025-07-11 16:34:58 -07:00
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -116,6 +116,7 @@ class AgentTool(BaseTool):
artifact_service=ForwardingArtifactService(tool_context),
session_service=InMemorySessionService(),
memory_service=InMemoryMemoryService(),
credential_service=tool_context._invocation_context.credential_service,
)
session = await runner.session_service.create_session(
app_name=self.agent.name,
@@ -11,7 +11,6 @@ def mock_invocation_context():
mock_context.invocation_id = "test-invocation-id"
mock_context.agent.name = "test-agent-name"
mock_context.session.state = {"key1": "value1", "key2": "value2"}
return mock_context