llm-simple-0.4.3.0: test/fixtures/openai-conversation-generated.json
[
{
"prompt": "how's the weather in london?",
"request": {
"max_completion_tokens": 1024,
"messages": [
{
"content": "You are a helpful assistant who answers questions and executes tools for the user. Always use tools when asked to, but use only the tools that are available.",
"role": "system"
},
{
"content": "how's the weather in london?",
"role": "user"
}
],
"model": "gpt-4.1-2025-04-14",
"tools": [
{
"function": {
"description": "Get the current weather for a given location",
"name": "get_weather",
"parameters": {
"$comment": "WeatherToolArgs",
"properties": {
"location": {
"$comment": "City name, e.g. London",
"type": "string"
}
},
"required": ["location"],
"type": "object"
}
},
"type": "function"
}
]
},
"response": {
"choices": [
{
"finish_reason": "tool_calls",
"index": 0,
"logprobs": null,
"message": {
"annotations": [],
"content": null,
"refusal": null,
"role": "assistant",
"tool_calls": [
{
"function": {
"arguments": "{\"location\":\"London\"}",
"name": "get_weather"
},
"id": "call_iEUnimmOnAOY9s9IVbLEAFzJ",
"type": "function"
}
]
}
}
],
"created": 1778258479,
"id": "chatcmpl-DdIYJq6wNZp4OzHKLO6FRfALkcbZE",
"model": "gpt-4.1-2025-04-14",
"object": "chat.completion",
"service_tier": "default",
"system_fingerprint": "fp_32787711d0",
"usage": {
"completion_tokens": 14,
"completion_tokens_details": {
"accepted_prediction_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0,
"rejected_prediction_tokens": 0
},
"prompt_tokens": 84,
"prompt_tokens_details": {
"audio_tokens": 0,
"cached_tokens": 0
},
"total_tokens": 98
}
}
},
{
"request": {
"max_completion_tokens": 1024,
"messages": [
{
"content": "You are a helpful assistant who answers questions and executes tools for the user. Always use tools when asked to, but use only the tools that are available.",
"role": "system"
},
{
"content": "how's the weather in london?",
"role": "user"
},
{
"role": "assistant",
"tool_calls": [
{
"function": {
"arguments": "{\"location\":\"London\"}",
"name": "get_weather"
},
"id": "call_iEUnimmOnAOY9s9IVbLEAFzJ",
"type": "function"
}
]
},
{
"content": "Weather in London is partly cloudy, 18°C, light breeze from the west.",
"role": "tool",
"tool_call_id": "call_iEUnimmOnAOY9s9IVbLEAFzJ"
}
],
"model": "gpt-4.1-2025-04-14",
"tools": [
{
"function": {
"description": "Get the current weather for a given location",
"name": "get_weather",
"parameters": {
"$comment": "WeatherToolArgs",
"properties": {
"location": {
"$comment": "City name, e.g. London",
"type": "string"
}
},
"required": ["location"],
"type": "object"
}
},
"type": "function"
}
]
},
"response": {
"choices": [
{
"finish_reason": "stop",
"index": 0,
"logprobs": null,
"message": {
"annotations": [],
"content": "The weather in London is partly cloudy with a temperature of 18°C. There's a light breeze coming from the west.",
"refusal": null,
"role": "assistant"
}
}
],
"created": 1778258482,
"id": "chatcmpl-DdIYM5PzqXzTq0bilZwSUsbnHCxFX",
"model": "gpt-4.1-2025-04-14",
"object": "chat.completion",
"service_tier": "default",
"system_fingerprint": "fp_32787711d0",
"usage": {
"completion_tokens": 25,
"completion_tokens_details": {
"accepted_prediction_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0,
"rejected_prediction_tokens": 0
},
"prompt_tokens": 123,
"prompt_tokens_details": {
"audio_tokens": 0,
"cached_tokens": 0
},
"total_tokens": 148
}
}
},
{
"prompt": "and in paris?",
"request": {
"max_completion_tokens": 1024,
"messages": [
{
"content": "You are a helpful assistant who answers questions and executes tools for the user. Always use tools when asked to, but use only the tools that are available.",
"role": "system"
},
{
"content": "how's the weather in london?",
"role": "user"
},
{
"role": "assistant",
"tool_calls": [
{
"function": {
"arguments": "{\"location\":\"London\"}",
"name": "get_weather"
},
"id": "call_iEUnimmOnAOY9s9IVbLEAFzJ",
"type": "function"
}
]
},
{
"content": "Weather in London is partly cloudy, 18°C, light breeze from the west.",
"role": "tool",
"tool_call_id": "call_iEUnimmOnAOY9s9IVbLEAFzJ"
},
{
"content": "The weather in London is partly cloudy with a temperature of 18°C. There's a light breeze coming from the west.",
"role": "assistant"
},
{
"content": "and in paris?",
"role": "user"
}
],
"model": "gpt-4.1-2025-04-14",
"tools": [
{
"function": {
"description": "Get the current weather for a given location",
"name": "get_weather",
"parameters": {
"$comment": "WeatherToolArgs",
"properties": {
"location": {
"$comment": "City name, e.g. London",
"type": "string"
}
},
"required": ["location"],
"type": "object"
}
},
"type": "function"
}
]
},
"response": {
"choices": [
{
"finish_reason": "tool_calls",
"index": 0,
"logprobs": null,
"message": {
"annotations": [],
"content": null,
"refusal": null,
"role": "assistant",
"tool_calls": [
{
"function": {
"arguments": "{\"location\":\"Paris\"}",
"name": "get_weather"
},
"id": "call_BjIIjpMKAjecx0iXj6sFzyz8",
"type": "function"
}
]
}
}
],
"created": 1778258484,
"id": "chatcmpl-DdIYOrExHpeG6IO8eZcrLSAVBiZ8s",
"model": "gpt-4.1-2025-04-14",
"object": "chat.completion",
"service_tier": "default",
"system_fingerprint": "fp_32787711d0",
"usage": {
"completion_tokens": 14,
"completion_tokens_details": {
"accepted_prediction_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0,
"rejected_prediction_tokens": 0
},
"prompt_tokens": 159,
"prompt_tokens_details": {
"audio_tokens": 0,
"cached_tokens": 0
},
"total_tokens": 173
}
}
},
{
"request": {
"max_completion_tokens": 1024,
"messages": [
{
"content": "You are a helpful assistant who answers questions and executes tools for the user. Always use tools when asked to, but use only the tools that are available.",
"role": "system"
},
{
"content": "how's the weather in london?",
"role": "user"
},
{
"role": "assistant",
"tool_calls": [
{
"function": {
"arguments": "{\"location\":\"London\"}",
"name": "get_weather"
},
"id": "call_iEUnimmOnAOY9s9IVbLEAFzJ",
"type": "function"
}
]
},
{
"content": "Weather in London is partly cloudy, 18°C, light breeze from the west.",
"role": "tool",
"tool_call_id": "call_iEUnimmOnAOY9s9IVbLEAFzJ"
},
{
"content": "The weather in London is partly cloudy with a temperature of 18°C. There's a light breeze coming from the west.",
"role": "assistant"
},
{
"content": "and in paris?",
"role": "user"
},
{
"role": "assistant",
"tool_calls": [
{
"function": {
"arguments": "{\"location\":\"Paris\"}",
"name": "get_weather"
},
"id": "call_BjIIjpMKAjecx0iXj6sFzyz8",
"type": "function"
}
]
},
{
"content": "Weather in Paris is sunny, 23°C, no wind.",
"role": "tool",
"tool_call_id": "call_BjIIjpMKAjecx0iXj6sFzyz8"
}
],
"model": "gpt-4.1-2025-04-14",
"tools": [
{
"function": {
"description": "Get the current weather for a given location",
"name": "get_weather",
"parameters": {
"$comment": "WeatherToolArgs",
"properties": {
"location": {
"$comment": "City name, e.g. London",
"type": "string"
}
},
"required": ["location"],
"type": "object"
}
},
"type": "function"
}
]
},
"response": {
"choices": [
{
"finish_reason": "stop",
"index": 0,
"logprobs": null,
"message": {
"annotations": [],
"content": "The weather in Paris is sunny with a temperature of 23°C and no wind.",
"refusal": null,
"role": "assistant"
}
}
],
"created": 1778258487,
"id": "chatcmpl-DdIYROAfAokkKxQSrRIrwAc0sluGR",
"model": "gpt-4.1-2025-04-14",
"object": "chat.completion",
"service_tier": "default",
"system_fingerprint": "fp_32787711d0",
"usage": {
"completion_tokens": 18,
"completion_tokens_details": {
"accepted_prediction_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0,
"rejected_prediction_tokens": 0
},
"prompt_tokens": 194,
"prompt_tokens_details": {
"audio_tokens": 0,
"cached_tokens": 0
},
"total_tokens": 212
}
}
}
]