{ "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": "Say hi to the world. Use tools to do so." }, { "role": "assistant", "content": "", "tool_calls": [ { "id": "call_qvp9u80l", "type": "function", "function": { "name": "greet_everyone", "arguments": "{\"url\":\"world\"}" } } ] }, { "role": "tool", "tool_call_id": "call_qvp9u80l", "content": [ { "type": "text", "text": "Hello, world!" } ] }, { "role": "assistant", "content": "<|python_tag|>{\"message\": \"Hello, world!\", \"type\": \"hello_world\"}" }, { "role": "user", "content": "What is the boiling point of polyjuice? Use tools to answer." } ], "max_tokens": 0, "stream": true, "tool_choice": "auto", "tools": [ { "type": "function", "function": { "name": "greet_everyone", "parameters": { "properties": { "url": { "title": "Url", "type": "string" } }, "required": [ "url" ], "title": "greet_everyoneArguments", "type": "object" } } }, { "type": "function", "function": { "name": "get_boiling_point", "description": "\n Returns the boiling point of a liquid in Celsius or Fahrenheit.\n\n :param liquid_name: The name of the liquid\n :param celsius: Whether to return the boiling point in Celsius\n :return: The boiling point of the liquid in Celcius or Fahrenheit\n ", "parameters": { "properties": { "liquid_name": { "title": "Liquid Name", "type": "string" }, "celsius": { "default": true, "title": "Celsius", "type": "boolean" } }, "required": [ "liquid_name" ], "title": "get_boiling_pointArguments", "type": "object" } } } ] }, "endpoint": "/v1/chat/completions", "model": "llama3.2:3b-instruct-fp16" }, "response": { "body": [ { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-827", "choices": [ { "delta": { "content": "", "function_call": null, "refusal": null, "role": "assistant", "tool_calls": [ { "index": 0, "id": "call_y1jmdav5", "function": { "arguments": "{\"celsius\":\"false\",\"liquid_name\":\"polyjuice\"}", "name": "get_boiling_point" }, "type": "function" } ] }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1759437847, "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": "chatcmpl-827", "choices": [ { "delta": { "content": "", "function_call": null, "refusal": null, "role": "assistant", "tool_calls": null }, "finish_reason": "tool_calls", "index": 0, "logprobs": null } ], "created": 1759437848, "model": "llama3.2:3b-instruct-fp16", "object": "chat.completion.chunk", "service_tier": null, "system_fingerprint": "fp_ollama", "usage": null } } ], "is_streaming": true } }