@@ -10398,8 +10398,8 @@ class EvalRunInferenceConfigDict(TypedDict, total=False): |
10398 | 10398 | EvalRunInferenceConfigOrDict = Union[EvalRunInferenceConfig, EvalRunInferenceConfigDict] |
10399 | 10399 |
|
10400 | 10400 |
|
10401 | | -class AgentMetadata(_common.BaseModel): |
10402 | | - """AgentMetadata for agent eval.""" |
| 10401 | +class AgentInfo(_common.BaseModel): |
| 10402 | + """The agent info of an agent, used for agent eval.""" |
10403 | 10403 |
|
10404 | 10404 | name: Optional[str] = Field( |
10405 | 10405 | default=None, description="""Agent name, used as an identifier.""" |
@@ -10413,13 +10413,10 @@ class AgentMetadata(_common.BaseModel): |
10413 | 10413 | tool_declarations: Optional[genai_types.ToolListUnion] = Field( |
10414 | 10414 | default=None, description="""List of tools used by the Agent.""" |
10415 | 10415 | ) |
10416 | | - sub_agent_names: Optional[list[str]] = Field( |
10417 | | - default=None, description="""List of sub-agent names.""" |
10418 | | - ) |
10419 | 10416 |
|
10420 | 10417 |
|
10421 | | -class AgentMetadataDict(TypedDict, total=False): |
10422 | | - """AgentMetadata for agent eval.""" |
| 10418 | +class AgentInfoDict(TypedDict, total=False): |
| 10419 | + """The agent info of an agent, used for agent eval.""" |
10423 | 10420 |
|
10424 | 10421 | name: Optional[str] |
10425 | 10422 | """Agent name, used as an identifier.""" |
@@ -10433,11 +10430,8 @@ class AgentMetadataDict(TypedDict, total=False): |
10433 | 10430 | tool_declarations: Optional[genai_types.ToolListUnionDict] |
10434 | 10431 | """List of tools used by the Agent.""" |
10435 | 10432 |
|
10436 | | - sub_agent_names: Optional[list[str]] |
10437 | | - """List of sub-agent names.""" |
10438 | | - |
10439 | 10433 |
|
10440 | | -AgentMetadataOrDict = Union[AgentMetadata, AgentMetadataDict] |
| 10434 | +AgentInfoOrDict = Union[AgentInfo, AgentInfoDict] |
10441 | 10435 |
|
10442 | 10436 |
|
10443 | 10437 | class ContentMapContents(_common.BaseModel): |
@@ -10669,11 +10663,11 @@ class EvalCase(_common.BaseModel): |
10669 | 10663 | ) |
10670 | 10664 | intermediate_events: Optional[list[Event]] = Field( |
10671 | 10665 | default=None, |
10672 | | - description="""Intermediate events of a single turn in agent eval or intermediate events of the last turn for multi-turn agent eval.""", |
| 10666 | + description="""This field is experimental and may change in future versions. Intermediate events of a single turn in an agent run or intermediate events of the last turn for multi-turn an agent run.""", |
10673 | 10667 | ) |
10674 | | - agent_metadata: Optional[dict[str, AgentMetadata]] = Field( |
| 10668 | + agent_info: Optional[AgentInfo] = Field( |
10675 | 10669 | default=None, |
10676 | | - description="""Agent metadata for agent eval, keyed by agent name. This can be extended for multi-agent evaluation.""", |
| 10670 | + description="""This field is experimental and may change in future versions. The agent info of the agent under evaluation. This can be extended for multi-agent evaluation.""", |
10677 | 10671 | ) |
10678 | 10672 | # Allow extra fields to support custom metric prompts and stay backward compatible. |
10679 | 10673 | model_config = ConfigDict(frozen=True, extra="allow") |
@@ -10704,10 +10698,10 @@ class EvalCaseDict(TypedDict, total=False): |
10704 | 10698 | """Unique identifier for the evaluation case.""" |
10705 | 10699 |
|
10706 | 10700 | intermediate_events: Optional[list[EventDict]] |
10707 | | - """Intermediate events of a single turn in agent eval or intermediate events of the last turn for multi-turn agent eval.""" |
| 10701 | + """This field is experimental and may change in future versions. Intermediate events of a single turn in an agent run or intermediate events of the last turn for multi-turn an agent run.""" |
10708 | 10702 |
|
10709 | | - agent_metadata: Optional[dict[str, AgentMetadataDict]] |
10710 | | - """Agent metadata for agent eval, keyed by agent name. This can be extended for multi-agent evaluation.""" |
| 10703 | + agent_info: Optional[AgentInfoDict] |
| 10704 | + """This field is experimental and may change in future versions. The agent info of the agent under evaluation. This can be extended for multi-agent evaluation.""" |
10711 | 10705 |
|
10712 | 10706 |
|
10713 | 10707 | EvalCaseOrDict = Union[EvalCase, EvalCaseDict] |
@@ -11076,6 +11070,34 @@ class EvaluationResultDict(TypedDict, total=False): |
11076 | 11070 | EvaluationResultOrDict = Union[EvaluationResult, EvaluationResultDict] |
11077 | 11071 |
|
11078 | 11072 |
|
| 11073 | +class SessionInput(_common.BaseModel): |
| 11074 | + """This field is experimental and may change in future versions. |
| 11075 | +
|
| 11076 | + Input to initialize a session and run an agent, used for agent evaluation. |
| 11077 | + """ |
| 11078 | + |
| 11079 | + user_id: Optional[str] = Field(default=None, description="""The user id.""") |
| 11080 | + state: Optional[dict[str, str]] = Field( |
| 11081 | + default=None, description="""The state of the session.""" |
| 11082 | + ) |
| 11083 | + |
| 11084 | + |
| 11085 | +class SessionInputDict(TypedDict, total=False): |
| 11086 | + """This field is experimental and may change in future versions. |
| 11087 | +
|
| 11088 | + Input to initialize a session and run an agent, used for agent evaluation. |
| 11089 | + """ |
| 11090 | + |
| 11091 | + user_id: Optional[str] |
| 11092 | + """The user id.""" |
| 11093 | + |
| 11094 | + state: Optional[dict[str, str]] |
| 11095 | + """The state of the session.""" |
| 11096 | + |
| 11097 | + |
| 11098 | +SessionInputOrDict = Union[SessionInput, SessionInputDict] |
| 11099 | + |
| 11100 | + |
11079 | 11101 | class WinRateStats(_common.BaseModel): |
11080 | 11102 | """Statistics for win rates for a single metric.""" |
11081 | 11103 |
|
|