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

Class InferenceRequest

src/google/adk/evaluation/base_eval_service.py:98–126  ·  view source on GitHub ↗

Represent a request to perform inferences for the eval cases in an eval set.

Source from the content-addressed store, hash-verified

96
97
98class InferenceRequest(BaseModel):
99 """Represent a request to perform inferences for the eval cases in an eval set."""
100
101 model_config = ConfigDict(
102 alias_generator=alias_generators.to_camel,
103 populate_by_name=True,
104 )
105
106 app_name: str = Field(
107 description="""The name of the app to which the eval case belongs to."""
108 )
109
110 eval_set_id: str = Field(description="""ID of the eval set.""")
111
112 eval_case_ids: Optional[list[str]] = Field(
113 default=None,
114 description="""ID of the eval cases for which inferences need to be
115generated.
116
117All the eval case ids should belong to the EvalSet.
118
119If the list of eval case ids are empty or not specified, then all the eval cases
120in an eval set are evaluated.
121 """,
122 )
123
124 inference_config: InferenceConfig = Field(
125 description="""The config to use for inferencing.""",
126 )
127
128
129class InferenceStatus(Enum):

Calls

no outgoing calls