We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f87925b commit 78a1c28Copy full SHA for 78a1c28
tests_integ/models/test_model_openai.py
@@ -45,10 +45,10 @@ def agent(model, tools):
45
@pytest.fixture
46
def weather():
47
class Weather(pydantic.BaseModel):
48
- """Extracts the time and weather from the user's message with the exact strings."""
+ """Extract time and weather values."""
49
50
- time: str
51
- weather: str
+ time: str = pydantic.Field(description="The time value only, e.g. '14:30' not 'The time is 14:30'")
+ weather: str = pydantic.Field(description="The weather condition only, e.g. 'rainy' not 'the weather is rainy'")
52
53
return Weather(time="12:00", weather="sunny")
54
0 commit comments