Tool-calling Traces — OpenAI Format (JSONL)
OpenAI-style tool-call JSONL with function invocation and tool result messages.
{"messages": [{"role": "user", "content": "Weather in Springfield?"}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_1", "type": "function", "function": {"name": "get_weather", "arguments": "{\"city\":\"Springfield\"}"}}]}, {"role": "tool", "tool_call_id": "call_1", "content": "{\"temp_c\": 12, \"condition\": \"cloudy\"}"}]}
{"messages": [{"role": "user", "content": "Weather in Springfield?"}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_1", "type": "function", "function": {"name": "get_weather", "arguments": "{\"city\":\"Springfield\"}"}}]}, {"role": "tool", "tool_call_id": "call_1", "content": "{\"temp_c\": 12, \"condition\": \"cloudy\"}"}]}
{"messages": [{"role": "user", "content": "Weather in Springfield?"}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_1", "type": "function", "function": {"name": "get_weather", "arguments": "{\"city\":\"Springfield\"}"}}]}, {"role": "tool", "tool_call_id": "call_1", "content": "{\"temp_c\": 12, \"condition\": \"cloudy\"}"}]}
{"messages": [{"role": "user", "content": "Weather in Springfield?"}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_1", "type": "function", "function": {"name": "get_weather", "arguments": "{\"city\":\"Springfield\"}"}}]}, {"role": "tool", "tool_call_id": "call_1", "content": "{\"temp_c\": 12, \"condition\": \"cloudy\"}"}]}
{"messages": [{"role": "user", "content": "Weather in Springfield?"}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_1", "type": "function", "function": {"name": "get_weather", "arguments": "{\"city\":\"Springfield\"}"}}]}, {"role": "tool", "tool_call_id": "call_1", "content": "{\"temp_c\": 12, \"condition\": \"cloudy\"}"}]}
{"messages": [{"role": "user", "content": "Weather in Springfield?"}, {"role": "assistant", "content": null, "tool_calls": [{"id": "call_1", "type": "function", "function": {"name": "get_weather", "arguments": "{\"city\":\"Springfield\"}"}}]}, {"role": "tool", "tool_call_id": "call_1", "content": "{\"temp_c\": 12, \"condition\": \"cloudy\"}"}]}
Specifications
- Records
- 6
- Format
- OpenAI tools
What is a .jsonl file?
JSONL (JSON Lines) is a text format where each line is a complete, independent JSON value, allowing records to be streamed and appended without parsing the whole file. It is not itself a JSON array and each line must stand alone. It is common in logging, machine learning datasets, and data pipelines.
How to use this file
Use an example JSONL to test line-by-line streaming parsers, append-and-resume ingestion, and batch pipelines that process one record per line.
How to use this file for testing
“Tool-calling Traces — OpenAI Format (JSONL)” is a deterministic Novus Examples fixture for Tool calling / function calling, ML training data, JSON parsing. JSONL traces of function/tool calls with arguments and results — for testing agent harnesses and tool routers.
Documented properties for this file: 6 records · OpenAI tools. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.
Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.
AI/ML fixtures are fully synthetic with documented schemas — no real people or data. Test data loaders, tokenizers, annotation converters, embedding/vector stores, or eval-metric parsers against the known structure and fixed seeds.
These JSON fixtures are synthetic SAMPLE auth or tool-call shapes for harnesses — never production secrets or live tokens. Validate schema fields and alg variants against the documented role.
Code examples
import json
with open("tool-calling-openai.jsonl") as f:
rows = [json.loads(line) for line in f]
print(len(rows), rows[0])Related files
- jsonlChat Fine-tuning Dataset — Anthropic Format (JSONL)The same synthetic conversations in the Anthropic Messages JSONL shape — a top-level system prompt plus a messages array of user and assistant turns. The format twin of the OpenAI file, for testing chat-format conversion.

- jsonlChat Fine-tuning Dataset — OpenAI Format (JSONL)A chat fine-tuning dataset in the OpenAI JSONL format — one conversation per line as a messages array with system, user, and assistant turns. Synthetic Q&A content. Paired with an Anthropic-format twin for testing format converters.

- jsonlClassification Dataset — Hierarchical (JSONL)Hierarchical category labels for taxonomy-aware classifiers.

- jsonlClassification Dataset — Imbalanced (JSONL)Imbalanced label distribution — 2 rare vs 8 common rows.

- jsonlClassification Dataset — Intent (JSONL)Intent classification JSONL for dialog systems.

- jsonlClassification Dataset — Language Id (JSONL)Language identification JSONL with EN/ES pairs.

Generated by generation/ai_wave_f.py. Free for any use, no attribution required — license.