The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
test(fireworks): stabilize forced tool-call extraction (#41139)
Mason Daugherty1f587e3f4e0b
diff --git a/libs/partners/fireworks/tests/integration_tests/test_chat_models.py b/libs/partners/fireworks/tests/integration_tests/test_chat_models.pyindex cbbfc3a3b8..bb2d5a89d7 100644--- a/libs/partners/fireworks/tests/integration_tests/test_chat_models.py+++ b/libs/partners/fireworks/tests/integration_tests/test_chat_models.py@@ -44,9 +44,11 @@ def test_tool_choice_bool(strict: bool | None) -> None: # noqa: FBT001else:assert tool_def["function"].get("strict") is strict- resp = with_tool.invoke("Who was the 27 year old named Erick?")+ resp = with_tool.invoke(+ "Use MyTool to extract the name and age from this fictional example: "+ "Erick is 27 years old."+ )assert isinstance(resp, AIMessage)- assert resp.content == "" # should just be tool calltool_calls = resp.additional_kwargs["tool_calls"]assert len(tool_calls) == 1tool_call = tool_calls[0]