{ "test_id": "tests/integration/agents/test_agents.py::test_tool_choice_get_boiling_point[ollama/llama3.2:3b-instruct-fp16]", "request": { "method": "POST", "url": "http://0.0.0.0:11434/v1/v1/chat/completions", "headers": {}, "body": { "model": "llama3.2:3b-instruct-fp16", "messages": [ { "role": "system", "content": "You are a helpful assistant" }, { "role": "user", "content": "What is the boiling point of the liquid polyjuice in celsius?" }, { "role": "assistant", "content": "", "tool_calls": [ { "id": "call_xm6j4l6d", "type": "function", "function": { "name": "get_boiling_point", "arguments": "{\"liquid\":\"polyjuice\",\"unit\":\"celsius\"}" } } ] }, { "role": "tool", "tool_call_id": "call_xm6j4l6d", "content": "Error when running tool: get_boiling_point() got an unexpected keyword argument 'liquid'" } ], "max_tokens": 512, "stream": true, "temperature": 0.0001, "tool_choice": { "type": "function", "function": { "name": "get_boiling_point" } }, "tools": [ { "type": "function", "function": { "name": "get_boiling_point", "description": "Returns the boiling point of a liquid in Celcius or Fahrenheit." } } ], "top_p": 0.9, "extra_body": {} }, "endpoint": "/v1/chat/completions", "model": "llama3.2:3b-instruct-fp16" }, "response": { "body": [ { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "rec-a2b17a381735", "choices": [ { "delta": { "content": "I was unable to find the boiling point for a liquid called \"polyjuice\" as it is not a real substance. Polyjuice is actually a fictional potion from the Harry Potter series by J.K. Rowling. If you meant to ask about a different substance, please let me know and I'll do my best to help!", "function_call": null, "refusal": null, "role": "assistant", "tool_calls": null }, "finish_reason": "stop", "index": 0, "logprobs": null } ], "created": 0, "model": "llama3.2:3b-instruct-fp16", "object": "chat.completion.chunk", "service_tier": null, "system_fingerprint": "fp_ollama", "usage": null } } ], "is_streaming": true } }