{ "name": "api_externe", "cfg": { "EXTERNAL": "1", "EXTERNAL_MODEL": "gpt-x", "EXTERNAL_URL": "{{URL}}" }, "messages": [ { "role": "system", "content": "Tu es Loki." }, { "role": "user", "content": "Lis a.txt" } ], "tools": [ { "type": "function", "function": { "name": "read", "description": "Read a file with 1-indexed line numbers (offset/limit for long files). ALWAYS use this instead of cat/type: output is bounded and reading a file is REQUIRED before you may edit or overwrite it.", "parameters": { "properties": { "file": { "description": "Path (relative to the working folder)", "type": "string" }, "limit": { "description": "Lines (default 400, max 1000)", "type": "integer" }, "offset": { "description": "Start line (default 1)", "type": "integer" } }, "required": [ "file" ], "type": "object" } } }, { "type": "function", "function": { "name": "bash", "description": "Run a shell command (bash syntax) and return stdout, stderr and exit code: inspect the system, read files and logs, run scripts. To CREATE or REWRITE a file use write instead — never echo/cat/python -c. Avoid destructive commands unless asked.", "parameters": { "properties": { "command": { "description": "The command", "type": "string" }, "timeout": { "description": "Timeout s (default 30, max 300)", "type": "integer" } }, "required": [ "command" ], "type": "object" } } } ], "temperature": 0.7, "replies": [ { "status": 200, "lines": [ "data: {\"choices\":[{\"delta\":{\"reasoning_content\":\"Je lis.\"}}]}", "data: {\"choices\":[{\"delta\":{\"tool_calls\":[{\"function\":{\"arguments\":\"{\\\"file\\\":\\\"a.txt\\\"}\",\"name\":\"read\"},\"id\":\"c1\",\"index\":0,\"type\":\"function\"}]}}]}", "data: {\"choices\":[{\"delta\":{},\"finish_reason\":\"tool_calls\"}],\"usage\":{\"completion_tokens\":5,\"prompt_tokens\":100}}", "data: [DONE]" ] }, { "status": 200, "lines": [ "data: {\"choices\":[{\"delta\":{\"content\":\"Deux lignes.\"}}]}", "data: {\"choices\":[{\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"completion_tokens\":5,\"prompt_tokens\":100}}", "data: [DONE]" ] } ], "tool_results": { "bash": "a.txt\nb.txt", "read": "ligne 1\nligne 2" }, "expect": { "requests": [ { "messages": [ { "content": "Tu es Loki.", "role": "system" }, { "content": "Lis a.txt", "role": "user" } ], "model": "gpt-x", "parallel_tool_calls": false, "stream": true, "stream_options": { "include_usage": true }, "temperature": 0.7, "tools": [ { "function": { "description": "Read a file with 1-indexed line numbers (offset/limit for long files). ALWAYS use this instead of cat/type: output is bounded and reading a file is REQUIRED before you may edit or overwrite it.", "name": "read", "parameters": { "properties": { "file": { "description": "Path (relative to the working folder)", "type": "string" }, "limit": { "description": "Lines (default 400, max 1000)", "type": "integer" }, "offset": { "description": "Start line (default 1)", "type": "integer" } }, "required": [ "file" ], "type": "object" } }, "type": "function" }, { "function": { "description": "Run a shell command (bash syntax) and return stdout, stderr and exit code: inspect the system, read files and logs, run scripts. To CREATE or REWRITE a file use write instead — never echo/cat/python -c. Avoid destructive commands unless asked.", "name": "bash", "parameters": { "properties": { "command": { "description": "The command", "type": "string" }, "timeout": { "description": "Timeout s (default 30, max 300)", "type": "integer" } }, "required": [ "command" ], "type": "object" } }, "type": "function" } ] }, { "messages": [ { "content": "Tu es Loki.", "role": "system" }, { "content": "Lis a.txt", "role": "user" }, { "role": "assistant", "tool_calls": [ { "function": { "arguments": "{\"file\":\"a.txt\"}", "name": "read" }, "id": "c1", "type": "function" } ] }, { "content": "ligne 1\nligne 2", "role": "tool", "tool_call_id": "c1" } ], "model": "gpt-x", "parallel_tool_calls": false, "stream": true, "stream_options": { "include_usage": true }, "temperature": 0.7, "tools": [ { "function": { "description": "Read a file with 1-indexed line numbers (offset/limit for long files). ALWAYS use this instead of cat/type: output is bounded and reading a file is REQUIRED before you may edit or overwrite it.", "name": "read", "parameters": { "properties": { "file": { "description": "Path (relative to the working folder)", "type": "string" }, "limit": { "description": "Lines (default 400, max 1000)", "type": "integer" }, "offset": { "description": "Start line (default 1)", "type": "integer" } }, "required": [ "file" ], "type": "object" } }, "type": "function" }, { "function": { "description": "Run a shell command (bash syntax) and return stdout, stderr and exit code: inspect the system, read files and logs, run scripts. To CREATE or REWRITE a file use write instead — never echo/cat/python -c. Avoid destructive commands unless asked.", "name": "bash", "parameters": { "properties": { "command": { "description": "The command", "type": "string" }, "timeout": { "description": "Timeout s (default 30, max 300)", "type": "integer" } }, "required": [ "command" ], "type": "object" } }, "type": "function" } ] } ], "events": [ { "reasoning": "Je lis." }, { "tool_used": { "label": "a.txt", "name": "read", "typing": true } }, { "tool_used": { "label": "a.txt", "name": "read" } }, { "tool_used": { "done": true, "label": "a.txt", "name": "read", "result": "ligne 1\nligne 2", "result_chars": 15 } }, { "content": "Deux lignes." } ], "extra": [ { "role": "assistant", "tool_calls": [ { "id": "c1", "type": "function", "function": { "name": "read", "arguments": "{\"file\":\"a.txt\"}" } } ] }, { "role": "tool", "content": "ligne 1\nligne 2", "tool_call_id": "c1" } ], "err": "" } }