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

Class Invocation

src/google/adk/evaluation/eval_case.py:81–109  ·  view source on GitHub ↗

Represents a single invocation.

Source from the content-addressed store, hash-verified

79
80
81class Invocation(EvalBaseModel):
82 """Represents a single invocation."""
83
84 invocation_id: str = ""
85 """Unique identifier for the invocation."""
86
87 user_content: genai_types.Content
88 """Content provided by the user in this invocation."""
89
90 final_response: Optional[genai_types.Content] = None
91 """Final response from the agent."""
92
93 intermediate_data: Optional[IntermediateDataType] = None
94 """Intermediate steps generated as a part of Agent execution.
95
96 For a multi-agent system, it is also helpful to inspect the route that
97 the agent took to generate final response.
98 """
99
100 creation_timestamp: float = 0.0
101 """Timestamp for the current invocation, primarily intended for debugging purposes."""
102
103 rubrics: Optional[list[Rubric]] = Field(
104 default=None,
105 )
106 """A list of rubrics that are applicable to only this invocation."""
107
108 app_details: Optional[AppDetails] = Field(default=None)
109 """Details about the App that was used for this invocation."""
110
111
112SessionState: TypeAlias = dict[str, Any]

Calls

no outgoing calls