{ "test_id": "tests/integration/agents/test_agents.py::test_create_turn_response[ollama/llama3.2:3b-instruct-fp16-client_tools0]", "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": [ { "type": "text", "text": "Call get_boiling_point tool and answer What is the boiling point of polyjuice?" } ] } ], "stream": true, "stream_options": { "include_usage": true }, "tools": [ { "type": "function", "function": { "type": "function", "name": "get_boiling_point", "description": "Returns the boiling point of a liquid in Celcius or Fahrenheit.", "parameters": { "type": "object", "properties": { "liquid_name": { "type": "string", "description": "The name of the liquid" }, "celcius": { "type": "boolean", "description": "Whether to return the boiling point in Celcius" } }, "required": [ "liquid_name" ] }, "strict": null } } ] }, "endpoint": "/v1/chat/completions", "model": "llama3.2:3b-instruct-fp16" }, "response": { "body": [ { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "rec-56aac88a7f40", "choices": [ { "delta": { "content": "", "function_call": null, "refusal": null, "role": "assistant", "tool_calls": [ { "index": 0, "id": "call_awwijvr5", "function": { "arguments": "{\"celcius\":true,\"liquid_name\":\"polyjuice\"}", "name": "get_boiling_point" }, "type": "function" } ] }, "finish_reason": null, "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 } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "rec-56aac88a7f40", "choices": [ { "delta": { "content": "", "function_call": null, "refusal": null, "role": "assistant", "tool_calls": null }, "finish_reason": "tool_calls", "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 } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "rec-56aac88a7f40", "choices": [], "created": 0, "model": "llama3.2:3b-instruct-fp16", "object": "chat.completion.chunk", "service_tier": null, "system_fingerprint": "fp_ollama", "usage": { "completion_tokens": 24, "prompt_tokens": 212, "total_tokens": 236, "completion_tokens_details": null, "prompt_tokens_details": null } } } ], "is_streaming": true }, "id_normalization_mapping": {} }