mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
Merge pull request #1829 from matino:expose_credential_service
PiperOrigin-RevId: 782150305
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user