File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 99"""
1010
1111import asyncio
12- from typing import TypeVar
12+ from typing import Any
1313
1414from pydantic import BaseModel , Field
1515
1616import workflowai
1717from workflowai import Model , Run
1818
19- # Type variable for the output model, constrained to BaseModel
20- T = TypeVar ("T" , bound = BaseModel )
21-
2219
2320class CityInput (BaseModel ):
2421 """Input model for the city-to-capital agent."""
22+
2523 city : str = Field (
2624 description = "The name of the city for which to find the country's capital" ,
2725 examples = ["Paris" , "New York" , "Tokyo" ],
@@ -30,6 +28,7 @@ class CityInput(BaseModel):
3028
3129class CapitalOutput (BaseModel ):
3230 """Output model containing information about the capital city."""
31+
3332 country : str = Field (
3433 description = "The country where the input city is located" ,
3534 examples = ["France" , "United States" , "Japan" ],
You can’t perform that action at this time.
0 commit comments