MCPcopy Index your code
hub / github.com/google/adk-python / test_function_instruction

Function test_function_instruction

tests/integration/test_system_instruction.py:169–177  ·  view source on GitHub ↗
(agent_runner: TestRunner)

Source from the content-addressed store, hash-verified

167 indirect=True,
168)
169def test_function_instruction(agent_runner: TestRunner):
170 session = Session(context={"customerId": "1234567890"})
171 si = UnitFlow()._build_system_instruction(
172 InvocationContext(
173 invocation_id="1234567890", agent=agent_runner.agent, session=session
174 )
175 )
176
177 assert "This is the plain text sub agent instruction." in si

Callers

nothing calls this directly

Calls 2

SessionClass · 0.90
InvocationContextClass · 0.90

Tested by

no test coverage detected