mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-10 03:37:51 +02:00
chore(prebuilt): rework structured outputs -- type safety, etc (#5962)
* make `_SchemaSpec` private * Add ability to customize message used in artificial tool response
This commit is contained in:
@@ -433,7 +433,7 @@ def test_react_agent_with_structured_response() -> None:
|
||||
return "The weather is sunny and 75°F."
|
||||
|
||||
expected_structured_response = WeatherResponse(temperature=75)
|
||||
model = FakeToolCallingModel(
|
||||
model = FakeToolCallingModel[WeatherResponse](
|
||||
tool_calls=tool_calls, structured_response=expected_structured_response
|
||||
)
|
||||
agent = create_react_agent(
|
||||
|
||||
Reference in New Issue
Block a user