3112 lines
118 KiB
JSON
3112 lines
118 KiB
JSON
{
|
|
"_comment": "Golden inputs and outputs of the pure Responses protocol (request validation, prompt rendering, response trace, tool-call text parsing). Generated from the code as it was in leleka-control-plane before it moved to leleka-gateway-domain (STRA-338 S21); outputs must stay byte-identical. Regenerate only on purpose: cargo test -p leleka-control-plane golden::regenerate -- --ignored",
|
|
"render": [
|
|
{
|
|
"name": "plain string",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello"
|
|
},
|
|
"expected": {
|
|
"prompt": "<|im_start|>system\nReasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.<|im_end|>\n<|im_start|>user\nhello<|im_end|>\n<|im_start|>assistant\n<think>\n",
|
|
"images": []
|
|
}
|
|
},
|
|
{
|
|
"name": "instructions and parts",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": [
|
|
{
|
|
"type": "message",
|
|
"role": "developer",
|
|
"content": [
|
|
{
|
|
"type": "input_text",
|
|
"text": "dev rule"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_text",
|
|
"text": "first"
|
|
},
|
|
{
|
|
"type": "input_text",
|
|
"text": " second"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "ok"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "assistant",
|
|
"content": "more"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": "next"
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "system",
|
|
"content": "late system"
|
|
}
|
|
],
|
|
"instructions": "Be brief."
|
|
},
|
|
"expected": {
|
|
"prompt": "<|im_start|>system\nReasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.\n\nBe brief.\ndev rule\nlate system<|im_end|>\n<|im_start|>user\nfirst second<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\nok\nmore<|im_end|>\n<|im_start|>user\nnext<|im_end|>\n<|im_start|>assistant\n<think>\n",
|
|
"images": []
|
|
}
|
|
},
|
|
{
|
|
"name": "control token text is marked",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "a <think> b </think> <tool_call> c <|endoftext|>",
|
|
"instructions": "<|im_start|>system<|im_end|>"
|
|
},
|
|
"expected": {
|
|
"prompt": "<|im_start|>system\nReasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.\n\nsystem<|im_end|>\n<|im_start|>user\na b c <|im_end|>\n<|im_start|>assistant\n<think>\n",
|
|
"images": []
|
|
}
|
|
},
|
|
{
|
|
"name": "tools and replay",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": [
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": "go"
|
|
},
|
|
{
|
|
"type": "reasoning",
|
|
"content": [
|
|
{
|
|
"type": "reasoning_text",
|
|
"text": "I will look"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"call_id": "c1",
|
|
"name": "lookup",
|
|
"arguments": "{\"q\":\"x\",\"n\":3}"
|
|
},
|
|
{
|
|
"type": "custom_tool_call",
|
|
"call_id": "c2",
|
|
"name": "run",
|
|
"input": "ls -la"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"call_id": "c1",
|
|
"output": "found <tool_response> it"
|
|
},
|
|
{
|
|
"type": "custom_tool_call_output",
|
|
"call_id": "c2",
|
|
"output": [
|
|
{
|
|
"type": "input_text",
|
|
"text": "file1"
|
|
},
|
|
{
|
|
"type": "input_text",
|
|
"text": "file2"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": "thanks"
|
|
}
|
|
],
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "custom",
|
|
"name": "run",
|
|
"description": "Run a shell command"
|
|
},
|
|
{
|
|
"type": "namespace",
|
|
"name": "code",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "edit",
|
|
"description": "edit a file",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"expected": {
|
|
"prompt": "<|im_start|>system\nReasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.\n\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"lookup\", \"description\": \"Find a thing\", \"parameters\": {\"type\": \"object\", \"properties\": {\"q\": {\"type\": \"string\"}, \"n\": {\"type\": \"integer\"}}, \"required\": [\"q\"]}}}\n{\"type\": \"function\", \"function\": {\"name\": \"run\", \"description\": \"Run a shell command\", \"parameters\": {\"type\": \"object\", \"properties\": {\"input\": {\"type\": \"string\"}}, \"required\": [\"input\"], \"additionalProperties\": false}}}\n{\"type\": \"function\", \"function\": {\"name\": \"ns_6db30b665b14ea5e2c3f55d1\", \"description\": \"code.edit\\nedit a file\", \"parameters\": {\"type\": \"object\", \"properties\": {\"path\": {\"type\": \"string\"}}}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT><|im_end|>\n<|im_start|>user\ngo<|im_end|>\n<|im_start|>assistant\n<think>\nI will look\n</think>\n\n<tool_call>\n<function=lookup>\n<parameter=q>\nx\n</parameter>\n<parameter=n>\n3\n</parameter>\n</function>\n</tool_call>\n<tool_call>\n<function=run>\n<parameter=input>\nls -la\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|im_start|>user\n<tool_response>\nfound it\n</tool_response>\n<tool_response>\nfile1\nfile2\n</tool_response><|im_end|>\n<|im_start|>user\nthanks<|im_end|>\n<|im_start|>assistant\n<think>\n",
|
|
"images": []
|
|
}
|
|
},
|
|
{
|
|
"name": "namespaced call replay",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": [
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": "x"
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"call_id": "n1",
|
|
"name": "edit",
|
|
"namespace": "code",
|
|
"arguments": "{\"path\":\"a.rs\"}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"call_id": "n1",
|
|
"output": "done"
|
|
}
|
|
],
|
|
"tools": [
|
|
{
|
|
"type": "namespace",
|
|
"name": "code",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "edit",
|
|
"description": "edit a file",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"expected": {
|
|
"prompt": "<|im_start|>system\nReasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.\n\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"ns_6db30b665b14ea5e2c3f55d1\", \"description\": \"code.edit\\nedit a file\", \"parameters\": {\"type\": \"object\", \"properties\": {\"path\": {\"type\": \"string\"}}}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT><|im_end|>\n<|im_start|>user\nx<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n<tool_call>\n<function=ns_6db30b665b14ea5e2c3f55d1>\n<parameter=path>\na.rs\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|im_start|>user\n<tool_response>\ndone\n</tool_response><|im_end|>\n<|im_start|>assistant\n<think>\n",
|
|
"images": []
|
|
}
|
|
},
|
|
{
|
|
"name": "forced function",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"tool_choice": {
|
|
"type": "function",
|
|
"name": "lookup"
|
|
}
|
|
},
|
|
"expected": {
|
|
"prompt": "<|im_start|>system\nReasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.\n\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"lookup\", \"description\": \"Find a thing\", \"parameters\": {\"type\": \"object\", \"properties\": {\"q\": {\"type\": \"string\"}, \"n\": {\"type\": \"integer\"}}, \"required\": [\"q\"]}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nCall exactly one function in this response: lookup. Do not call any other tool.<|im_end|>\n<|im_start|>user\nhello<|im_end|>\n<|im_start|>assistant\n<think>\n",
|
|
"images": []
|
|
}
|
|
},
|
|
{
|
|
"name": "forced custom",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "custom",
|
|
"name": "run",
|
|
"description": "Run a shell command"
|
|
}
|
|
],
|
|
"tool_choice": {
|
|
"type": "custom",
|
|
"name": "run"
|
|
}
|
|
},
|
|
"expected": {
|
|
"prompt": "<|im_start|>system\nReasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.\n\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"run\", \"description\": \"Run a shell command\", \"parameters\": {\"type\": \"object\", \"properties\": {\"input\": {\"type\": \"string\"}}, \"required\": [\"input\"], \"additionalProperties\": false}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nCall exactly one custom tool in this response: run. Do not call any other tool.<|im_end|>\n<|im_start|>user\nhello<|im_end|>\n<|im_start|>assistant\n<think>\n",
|
|
"images": []
|
|
}
|
|
},
|
|
{
|
|
"name": "required",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"tool_choice": "required"
|
|
},
|
|
"expected": {
|
|
"prompt": "<|im_start|>system\nReasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.\n\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"lookup\", \"description\": \"Find a thing\", \"parameters\": {\"type\": \"object\", \"properties\": {\"q\": {\"type\": \"string\"}, \"n\": {\"type\": \"integer\"}}, \"required\": [\"q\"]}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nCall at least one tool in this response.<|im_end|>\n<|im_start|>user\nhello<|im_end|>\n<|im_start|>assistant\n<think>\n",
|
|
"images": []
|
|
}
|
|
},
|
|
{
|
|
"name": "allowed tools",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "custom",
|
|
"name": "run",
|
|
"description": "Run a shell command"
|
|
}
|
|
],
|
|
"tool_choice": {
|
|
"type": "allowed_tools",
|
|
"mode": "auto",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"expected": {
|
|
"prompt": "<|im_start|>system\nReasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.\n\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"lookup\", \"description\": \"Find a thing\", \"parameters\": {\"type\": \"object\", \"properties\": {\"q\": {\"type\": \"string\"}, \"n\": {\"type\": \"integer\"}}, \"required\": [\"q\"]}}}\n{\"type\": \"function\", \"function\": {\"name\": \"run\", \"description\": \"Run a shell command\", \"parameters\": {\"type\": \"object\", \"properties\": {\"input\": {\"type\": \"string\"}}, \"required\": [\"input\"], \"additionalProperties\": false}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nOnly these tools may be called in this response: [{\"type\":\"function\",\"name\":\"lookup\"}]. Do not call any other tool.<|im_end|>\n<|im_start|>user\nhello<|im_end|>\n<|im_start|>assistant\n<think>\n",
|
|
"images": []
|
|
}
|
|
},
|
|
{
|
|
"name": "none and parallel false",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"tool_choice": "none",
|
|
"parallel_tool_calls": false
|
|
},
|
|
"expected": {
|
|
"prompt": "<|im_start|>system\nReasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.<|im_end|>\n<|im_start|>user\nhello<|im_end|>\n<|im_start|>assistant\n<think>\n",
|
|
"images": []
|
|
}
|
|
},
|
|
{
|
|
"name": "parallel false",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"parallel_tool_calls": false
|
|
},
|
|
"expected": {
|
|
"prompt": "<|im_start|>system\nReasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.\n\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"lookup\", \"description\": \"Find a thing\", \"parameters\": {\"type\": \"object\", \"properties\": {\"q\": {\"type\": \"string\"}, \"n\": {\"type\": \"integer\"}}, \"required\": [\"q\"]}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nUse at most one tool call in this response.<|im_end|>\n<|im_start|>user\nhello<|im_end|>\n<|im_start|>assistant\n<think>\n",
|
|
"images": []
|
|
}
|
|
},
|
|
{
|
|
"name": "json object",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"text": {
|
|
"format": {
|
|
"type": "json_object"
|
|
}
|
|
}
|
|
},
|
|
"expected": {
|
|
"prompt": "<|im_start|>system\nReasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.\n\nReturn exactly one JSON object as your final text response. Do not add Markdown fences or commentary.<|im_end|>\n<|im_start|>user\nhello<|im_end|>\n<|im_start|>assistant\n<think>\n",
|
|
"images": []
|
|
}
|
|
},
|
|
{
|
|
"name": "json schema with tools",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"text": {
|
|
"format": {
|
|
"type": "json_schema",
|
|
"name": "out",
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"a": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"expected": {
|
|
"prompt": "<|im_start|>system\nReasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.\n\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"lookup\", \"description\": \"Find a thing\", \"parameters\": {\"type\": \"object\", \"properties\": {\"q\": {\"type\": \"string\"}, \"n\": {\"type\": \"integer\"}}, \"required\": [\"q\"]}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nReturn exactly one JSON object matching this JSON Schema as your final text response. Do not add Markdown fences or commentary.\nJSON Schema: {\"type\":\"object\",\"properties\":{\"a\":{\"type\":\"string\"}}} Function calls still use the tool-call format; this JSON requirement applies to your final text answer after any necessary tool results.<|im_end|>\n<|im_start|>user\nhello<|im_end|>\n<|im_start|>assistant\n<think>\n",
|
|
"images": []
|
|
}
|
|
},
|
|
{
|
|
"name": "effort none",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"reasoning": {
|
|
"effort": "none"
|
|
}
|
|
},
|
|
"expected": {
|
|
"prompt": "<|im_start|>user\nhello<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",
|
|
"images": []
|
|
}
|
|
},
|
|
{
|
|
"name": "effort low",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"reasoning": {
|
|
"effort": "minimal",
|
|
"summary": "auto"
|
|
}
|
|
},
|
|
"expected": {
|
|
"prompt": "<|im_start|>system\nReasoning effort is set to low. Keep your thinking brief and focused, moving directly to the conclusion without unnecessary elaboration.<|im_end|>\n<|im_start|>user\nhello<|im_end|>\n<|im_start|>assistant\n<think>\n",
|
|
"images": []
|
|
}
|
|
},
|
|
{
|
|
"name": "image",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": [
|
|
{
|
|
"type": "message",
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "input_text",
|
|
"text": "see"
|
|
},
|
|
{
|
|
"type": "input_image",
|
|
"image_url": "data:image/png;base64,AAAA"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"expected": {
|
|
"prompt": "<|im_start|>system\nReasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.<|im_end|>\n<|im_start|>user\nsee<|vision_start|><|image_pad|><|vision_end|><|im_end|>\n<|im_start|>assistant\n<think>\n",
|
|
"images": [
|
|
"data:image/png;base64,AAAA"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "image in system",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": [
|
|
{
|
|
"type": "message",
|
|
"role": "system",
|
|
"content": [
|
|
{
|
|
"type": "input_image",
|
|
"image_url": "data:image/png;base64,AAAA"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"expected": {
|
|
"error": "System message cannot contain images."
|
|
}
|
|
},
|
|
{
|
|
"name": "image in assistant",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": [
|
|
{
|
|
"type": "message",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "input_image",
|
|
"image_url": "data:image/png;base64,AAAA"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"expected": {
|
|
"error": "images are only supported in user messages"
|
|
}
|
|
},
|
|
{
|
|
"name": "encrypted reasoning",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": [
|
|
{
|
|
"type": "reasoning",
|
|
"encrypted_content": "zzz",
|
|
"content": []
|
|
}
|
|
]
|
|
},
|
|
"expected": {
|
|
"error": "encrypted reasoning replay is not supported"
|
|
}
|
|
},
|
|
{
|
|
"name": "reasoning without follower",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": [
|
|
{
|
|
"type": "reasoning",
|
|
"content": [
|
|
{
|
|
"type": "reasoning_text",
|
|
"text": "t"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"expected": {
|
|
"error": "reasoning replay needs a following assistant message, tool call, or user turn"
|
|
}
|
|
},
|
|
{
|
|
"name": "unknown role",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": [
|
|
{
|
|
"type": "message",
|
|
"role": "tool",
|
|
"content": "x"
|
|
}
|
|
]
|
|
},
|
|
"expected": {
|
|
"error": "unsupported input message role"
|
|
}
|
|
},
|
|
{
|
|
"name": "unknown item",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": [
|
|
{
|
|
"type": "web_search_call"
|
|
}
|
|
]
|
|
},
|
|
"expected": {
|
|
"error": "unsupported Responses input item"
|
|
}
|
|
},
|
|
{
|
|
"name": "calls without outputs",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": [
|
|
{
|
|
"type": "function_call",
|
|
"call_id": "c",
|
|
"name": "lookup",
|
|
"arguments": "{}"
|
|
}
|
|
],
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"expected": {
|
|
"error": "replayed function calls need all tool outputs"
|
|
}
|
|
},
|
|
{
|
|
"name": "output kind mismatch",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": [
|
|
{
|
|
"type": "custom_tool_call",
|
|
"call_id": "c",
|
|
"name": "run",
|
|
"input": "x"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"call_id": "c",
|
|
"output": "y"
|
|
}
|
|
],
|
|
"tools": [
|
|
{
|
|
"type": "custom",
|
|
"name": "run",
|
|
"description": "Run a shell command"
|
|
}
|
|
]
|
|
},
|
|
"expected": {
|
|
"error": "tool output kind must match its preceding call"
|
|
}
|
|
},
|
|
{
|
|
"name": "bad argument name",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": [
|
|
{
|
|
"type": "function_call",
|
|
"call_id": "c",
|
|
"name": "lookup",
|
|
"arguments": "{\"a b\":1}"
|
|
},
|
|
{
|
|
"type": "function_call_output",
|
|
"call_id": "c",
|
|
"output": "y"
|
|
}
|
|
],
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"expected": {
|
|
"error": "function argument name cannot be rendered safely"
|
|
}
|
|
}
|
|
],
|
|
"validate": [
|
|
{
|
|
"name": "ok",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello"
|
|
},
|
|
"expected": {
|
|
"ok": true
|
|
}
|
|
},
|
|
{
|
|
"name": "empty model",
|
|
"request": {
|
|
"model": " ",
|
|
"input": "hello"
|
|
},
|
|
"expected": {
|
|
"param": "model",
|
|
"message": "model must be a nonempty string"
|
|
}
|
|
},
|
|
{
|
|
"name": "input type",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": 5
|
|
},
|
|
"expected": {
|
|
"param": "input",
|
|
"message": "input must be a string or an array"
|
|
}
|
|
},
|
|
{
|
|
"name": "empty input",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": ""
|
|
},
|
|
"expected": {
|
|
"param": "input",
|
|
"message": "input cannot be empty"
|
|
}
|
|
},
|
|
{
|
|
"name": "empty input array",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": []
|
|
},
|
|
"expected": {
|
|
"param": "input",
|
|
"message": "input cannot be empty"
|
|
}
|
|
},
|
|
{
|
|
"name": "zero max",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"max_output_tokens": 0
|
|
},
|
|
"expected": {
|
|
"param": "max_output_tokens",
|
|
"message": "max_output_tokens must be positive"
|
|
}
|
|
},
|
|
{
|
|
"name": "temperature",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"temperature": -1
|
|
},
|
|
"expected": {
|
|
"param": "temperature",
|
|
"message": "temperature must be between 0 and 2"
|
|
}
|
|
},
|
|
{
|
|
"name": "top_p",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"top_p": 2
|
|
},
|
|
"expected": {
|
|
"param": "top_p",
|
|
"message": "top_p must be between 0 and 1"
|
|
}
|
|
},
|
|
{
|
|
"name": "budget",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"reasoning_budget_tokens": "many"
|
|
},
|
|
"expected": {
|
|
"param": "reasoning_budget_tokens",
|
|
"message": "reasoning_budget_tokens must be a whole number of tokens (0: no budget)"
|
|
}
|
|
},
|
|
{
|
|
"name": "schema name",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"text": {
|
|
"format": {
|
|
"type": "json_schema",
|
|
"name": "",
|
|
"schema": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"expected": {
|
|
"param": "text.format",
|
|
"message": "json_schema needs a name and a root schema of type object"
|
|
}
|
|
},
|
|
{
|
|
"name": "schema root",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"text": {
|
|
"format": {
|
|
"type": "json_schema",
|
|
"name": "n",
|
|
"schema": {
|
|
"type": "array"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"expected": {
|
|
"param": "text.format",
|
|
"message": "json_schema needs a name and a root schema of type object"
|
|
}
|
|
},
|
|
{
|
|
"name": "schema remote ref",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"text": {
|
|
"format": {
|
|
"type": "json_schema",
|
|
"name": "n",
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"a": {
|
|
"$ref": "http://x/y"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"expected": {
|
|
"param": "text.format",
|
|
"message": "schema cannot use external $ref/$dynamicRef/$recursiveRef"
|
|
}
|
|
},
|
|
{
|
|
"name": "schema invalid",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"text": {
|
|
"format": {
|
|
"type": "json_schema",
|
|
"name": "n",
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": 5
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"expected": {
|
|
"param": "text.format",
|
|
"message": "json_schema needs a valid local schema"
|
|
}
|
|
},
|
|
{
|
|
"name": "reasoning shape",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"reasoning": "high"
|
|
},
|
|
"expected": {
|
|
"param": "reasoning",
|
|
"message": "reasoning must be an object"
|
|
}
|
|
},
|
|
{
|
|
"name": "reasoning key",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"reasoning": {
|
|
"depth": 1
|
|
}
|
|
},
|
|
"expected": {
|
|
"param": "reasoning",
|
|
"message": "only effort and summary are supported"
|
|
}
|
|
},
|
|
{
|
|
"name": "reasoning summary",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"reasoning": {
|
|
"summary": "detailed"
|
|
}
|
|
},
|
|
"expected": {
|
|
"param": "reasoning.summary",
|
|
"message": "only auto, none or null is supported; this runtime returns raw reasoning content with an empty summary"
|
|
}
|
|
},
|
|
{
|
|
"name": "reasoning effort",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"reasoning": {
|
|
"effort": "extreme"
|
|
}
|
|
},
|
|
"expected": {
|
|
"param": "reasoning.effort",
|
|
"message": "use none, minimal, low, medium, high or xhigh"
|
|
}
|
|
},
|
|
{
|
|
"name": "reasoning effort type",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"reasoning": {
|
|
"effort": 3
|
|
}
|
|
},
|
|
"expected": {
|
|
"param": "reasoning.effort",
|
|
"message": "effort must be a string or null"
|
|
}
|
|
},
|
|
{
|
|
"name": "service tier",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"service_tier": "gold"
|
|
},
|
|
"expected": {
|
|
"param": "service_tier",
|
|
"message": "unsupported service tier"
|
|
}
|
|
},
|
|
{
|
|
"name": "verbosity",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"text": {
|
|
"verbosity": "loud"
|
|
}
|
|
},
|
|
"expected": {
|
|
"param": "text.verbosity",
|
|
"message": "use low, medium or high"
|
|
}
|
|
},
|
|
{
|
|
"name": "user long",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"user": "uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu"
|
|
},
|
|
"expected": {
|
|
"param": "user",
|
|
"message": "user exceeds 512 bytes"
|
|
}
|
|
},
|
|
{
|
|
"name": "include",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"include": [
|
|
"file_search_call.results"
|
|
]
|
|
},
|
|
"expected": {
|
|
"param": "include",
|
|
"message": "unsupported optional response field"
|
|
}
|
|
},
|
|
{
|
|
"name": "cache key",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"prompt_cache_key": "kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk"
|
|
},
|
|
"expected": {
|
|
"param": "prompt_cache_key",
|
|
"message": "cache key exceeds 512 bytes"
|
|
}
|
|
},
|
|
{
|
|
"name": "required without tools",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tool_choice": "required"
|
|
},
|
|
"expected": {
|
|
"param": "tool_choice",
|
|
"message": "required tool choice needs at least one callable tool"
|
|
}
|
|
},
|
|
{
|
|
"name": "forced undeclared",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"tool_choice": {
|
|
"type": "function",
|
|
"name": "other"
|
|
}
|
|
},
|
|
"expected": {
|
|
"param": "tool_choice",
|
|
"message": "forced tool needs only type and the name of a declared top-level tool of the same type"
|
|
}
|
|
},
|
|
{
|
|
"name": "forced extra field",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"tool_choice": {
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"x": 1
|
|
}
|
|
},
|
|
"expected": {
|
|
"param": "tool_choice",
|
|
"message": "forced tool needs only type and the name of a declared top-level tool of the same type"
|
|
}
|
|
},
|
|
{
|
|
"name": "allowed no tools array",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"tool_choice": {
|
|
"type": "allowed_tools",
|
|
"mode": "auto"
|
|
}
|
|
},
|
|
"expected": {
|
|
"param": "tool_choice",
|
|
"message": "allowed_tools needs a tools array"
|
|
}
|
|
},
|
|
{
|
|
"name": "allowed bad mode",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"tool_choice": {
|
|
"type": "allowed_tools",
|
|
"mode": "some",
|
|
"tools": []
|
|
}
|
|
},
|
|
"expected": {
|
|
"param": "tool_choice",
|
|
"message": "allowed_tools needs only type, mode auto|required and tools; required needs at least one tool"
|
|
}
|
|
},
|
|
{
|
|
"name": "allowed required empty",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"tool_choice": {
|
|
"type": "allowed_tools",
|
|
"mode": "required",
|
|
"tools": []
|
|
}
|
|
},
|
|
"expected": {
|
|
"param": "tool_choice",
|
|
"message": "allowed_tools needs only type, mode auto|required and tools; required needs at least one tool"
|
|
}
|
|
},
|
|
{
|
|
"name": "allowed duplicate",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"tool_choice": {
|
|
"type": "allowed_tools",
|
|
"mode": "auto",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "lookup"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"expected": {
|
|
"param": "tool_choice",
|
|
"message": "allowed_tools needs unique declared top-level function/custom type and name selectors"
|
|
}
|
|
},
|
|
{
|
|
"name": "tool unnamed",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function"
|
|
}
|
|
]
|
|
},
|
|
"expected": {
|
|
"param": "tools",
|
|
"message": "function needs a name"
|
|
}
|
|
},
|
|
{
|
|
"name": "tool bad name",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "a b",
|
|
"parameters": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"expected": {
|
|
"param": "tools",
|
|
"message": "tool and namespace names require 1..64 ASCII letters, digits, hyphens or underscores"
|
|
}
|
|
},
|
|
{
|
|
"name": "tool long name",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn"
|
|
}
|
|
]
|
|
},
|
|
"expected": {
|
|
"param": "tools",
|
|
"message": "tool and namespace names require 1..64 ASCII letters, digits, hyphens or underscores"
|
|
}
|
|
},
|
|
{
|
|
"name": "tool duplicate",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"expected": {
|
|
"param": "tools",
|
|
"message": "duplicate tool identity or alias collision"
|
|
}
|
|
},
|
|
{
|
|
"name": "tool bad schema",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "t",
|
|
"parameters": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"expected": {
|
|
"param": "tools",
|
|
"message": "function parameters need a local, valid object schema"
|
|
}
|
|
},
|
|
{
|
|
"name": "tool remote ref",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "t",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"a": {
|
|
"$ref": "file:///etc/x"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"expected": {
|
|
"param": "tools",
|
|
"message": "function parameters need a local, valid object schema"
|
|
}
|
|
},
|
|
{
|
|
"name": "tools ok",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "custom",
|
|
"name": "run",
|
|
"description": "Run a shell command"
|
|
},
|
|
{
|
|
"type": "namespace",
|
|
"name": "code",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "edit",
|
|
"description": "edit a file",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"expected": {
|
|
"ok": true
|
|
}
|
|
}
|
|
],
|
|
"trace": [
|
|
{
|
|
"name": "text",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello"
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "text",
|
|
"deltas": [
|
|
"Hel",
|
|
"lo"
|
|
]
|
|
}
|
|
],
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"output_tokens": 40,
|
|
"reasoning_tokens": 10,
|
|
"cached_tokens": 64
|
|
},
|
|
"incomplete": false,
|
|
"expected": {
|
|
"response": {
|
|
"id": "resp_golden_1",
|
|
"object": "response",
|
|
"created_at": 1700000000,
|
|
"status": "completed",
|
|
"error": null,
|
|
"incomplete_details": null,
|
|
"instructions": null,
|
|
"max_output_tokens": null,
|
|
"model": "strata-local",
|
|
"output": [
|
|
{
|
|
"id": "msg_golden_1_0",
|
|
"type": "message",
|
|
"status": "completed",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Hello",
|
|
"annotations": [],
|
|
"logprobs": []
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"parallel_tool_calls": true,
|
|
"previous_response_id": null,
|
|
"reasoning": {
|
|
"effort": null,
|
|
"summary": null
|
|
},
|
|
"store": true,
|
|
"temperature": 0.0,
|
|
"text": {
|
|
"format": {
|
|
"type": "text"
|
|
}
|
|
},
|
|
"tool_choice": "auto",
|
|
"tools": [],
|
|
"top_p": 1.0,
|
|
"truncation": "disabled",
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"input_tokens_details": {
|
|
"cached_tokens": 64
|
|
},
|
|
"output_tokens": 40,
|
|
"output_tokens_details": {
|
|
"reasoning_tokens": 10
|
|
},
|
|
"total_tokens": 160
|
|
},
|
|
"user": null,
|
|
"metadata": {},
|
|
"completed_at": 1700000007
|
|
},
|
|
"frames": "event: response.created\ndata: {\"response\":{\"id\":\"resp_golden_1\",\"object\":\"response\",\"created_at\":1700000000,\"status\":\"in_progress\",\"error\":null,\"incomplete_details\":null,\"instructions\":null,\"max_output_tokens\":null,\"model\":\"strata-local\",\"output\":[],\"parallel_tool_calls\":true,\"previous_response_id\":null,\"reasoning\":{\"effort\":null,\"summary\":null},\"store\":true,\"temperature\":0.0,\"text\":{\"format\":{\"type\":\"text\"}},\"tool_choice\":\"auto\",\"tools\":[],\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":null,\"user\":null,\"metadata\":{}},\"type\":\"response.created\",\"sequence_number\":0}\n\nevent: response.in_progress\ndata: {\"response\":{\"id\":\"resp_golden_1\",\"object\":\"response\",\"created_at\":1700000000,\"status\":\"in_progress\",\"error\":null,\"incomplete_details\":null,\"instructions\":null,\"max_output_tokens\":null,\"model\":\"strata-local\",\"output\":[],\"parallel_tool_calls\":true,\"previous_response_id\":null,\"reasoning\":{\"effort\":null,\"summary\":null},\"store\":true,\"temperature\":0.0,\"text\":{\"format\":{\"type\":\"text\"}},\"tool_choice\":\"auto\",\"tools\":[],\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":null,\"user\":null,\"metadata\":{}},\"type\":\"response.in_progress\",\"sequence_number\":1}\n\nevent: response.output_item.added\ndata: {\"response_id\":\"resp_golden_1\",\"output_index\":0,\"item\":{\"id\":\"msg_golden_1_0\",\"type\":\"message\",\"status\":\"in_progress\",\"role\":\"assistant\",\"content\":[]},\"type\":\"response.output_item.added\",\"sequence_number\":2}\n\nevent: response.content_part.added\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"msg_golden_1_0\",\"output_index\":0,\"content_index\":0,\"part\":{\"type\":\"output_text\",\"text\":\"\",\"annotations\":[],\"logprobs\":[]},\"type\":\"response.content_part.added\",\"sequence_number\":3}\n\nevent: response.output_text.delta\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"msg_golden_1_0\",\"output_index\":0,\"content_index\":0,\"delta\":\"Hel\",\"logprobs\":[],\"type\":\"response.output_text.delta\",\"sequence_number\":4}\n\nevent: response.output_text.delta\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"msg_golden_1_0\",\"output_index\":0,\"content_index\":0,\"delta\":\"lo\",\"logprobs\":[],\"type\":\"response.output_text.delta\",\"sequence_number\":5}\n\nevent: response.output_text.done\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"msg_golden_1_0\",\"output_index\":0,\"content_index\":0,\"text\":\"Hello\",\"logprobs\":[],\"type\":\"response.output_text.done\",\"sequence_number\":6}\n\nevent: response.content_part.done\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"msg_golden_1_0\",\"output_index\":0,\"content_index\":0,\"part\":{\"type\":\"output_text\",\"text\":\"Hello\",\"annotations\":[],\"logprobs\":[]},\"type\":\"response.content_part.done\",\"sequence_number\":7}\n\nevent: response.output_item.done\ndata: {\"response_id\":\"resp_golden_1\",\"output_index\":0,\"item\":{\"id\":\"msg_golden_1_0\",\"type\":\"message\",\"status\":\"completed\",\"role\":\"assistant\",\"content\":[{\"type\":\"output_text\",\"text\":\"Hello\",\"annotations\":[],\"logprobs\":[]}]},\"type\":\"response.output_item.done\",\"sequence_number\":8}\n\nevent: response.completed\ndata: {\"response\":{\"id\":\"resp_golden_1\",\"object\":\"response\",\"created_at\":1700000000,\"status\":\"completed\",\"error\":null,\"incomplete_details\":null,\"instructions\":null,\"max_output_tokens\":null,\"model\":\"strata-local\",\"output\":[{\"id\":\"msg_golden_1_0\",\"type\":\"message\",\"status\":\"completed\",\"role\":\"assistant\",\"content\":[{\"type\":\"output_text\",\"text\":\"Hello\",\"annotations\":[],\"logprobs\":[]}]}],\"parallel_tool_calls\":true,\"previous_response_id\":null,\"reasoning\":{\"effort\":null,\"summary\":null},\"store\":true,\"temperature\":0.0,\"text\":{\"format\":{\"type\":\"text\"}},\"tool_choice\":\"auto\",\"tools\":[],\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":{\"input_tokens\":120,\"input_tokens_details\":{\"cached_tokens\":64},\"output_tokens\":40,\"output_tokens_details\":{\"reasoning_tokens\":10},\"total_tokens\":160},\"user\":null,\"metadata\":{},\"completed_at\":1700000007},\"type\":\"response.completed\",\"sequence_number\":9}\n\n"
|
|
}
|
|
},
|
|
{
|
|
"name": "reasoning text call",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"reasoning": {
|
|
"effort": "high"
|
|
}
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "reasoning",
|
|
"deltas": [
|
|
"think ",
|
|
"hard"
|
|
],
|
|
"complete": true
|
|
},
|
|
{
|
|
"type": "text",
|
|
"deltas": [
|
|
"I will look."
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"name": "lookup",
|
|
"call_id": "call_1_2",
|
|
"argument_deltas": [
|
|
"{\"q\":",
|
|
"\"x\"}"
|
|
]
|
|
}
|
|
],
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"output_tokens": 40,
|
|
"reasoning_tokens": 10,
|
|
"cached_tokens": 64
|
|
},
|
|
"incomplete": false,
|
|
"expected": {
|
|
"response": {
|
|
"id": "resp_golden_1",
|
|
"object": "response",
|
|
"created_at": 1700000000,
|
|
"status": "completed",
|
|
"error": null,
|
|
"incomplete_details": null,
|
|
"instructions": null,
|
|
"max_output_tokens": null,
|
|
"model": "strata-local",
|
|
"output": [
|
|
{
|
|
"id": "rs_golden_1_0",
|
|
"type": "reasoning",
|
|
"status": "completed",
|
|
"summary": [],
|
|
"content": [
|
|
{
|
|
"type": "reasoning_text",
|
|
"text": "think hard"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "msg_golden_1_1",
|
|
"type": "message",
|
|
"status": "completed",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "I will look.",
|
|
"annotations": [],
|
|
"logprobs": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "fc_golden_1_2",
|
|
"type": "function_call",
|
|
"status": "completed",
|
|
"call_id": "call_1_2",
|
|
"name": "lookup",
|
|
"arguments": "{\"q\":\"x\"}"
|
|
}
|
|
],
|
|
"parallel_tool_calls": true,
|
|
"previous_response_id": null,
|
|
"reasoning": {
|
|
"effort": "high"
|
|
},
|
|
"store": true,
|
|
"temperature": 0.0,
|
|
"text": {
|
|
"format": {
|
|
"type": "text"
|
|
}
|
|
},
|
|
"tool_choice": "auto",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"top_p": 1.0,
|
|
"truncation": "disabled",
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"input_tokens_details": {
|
|
"cached_tokens": 64
|
|
},
|
|
"output_tokens": 40,
|
|
"output_tokens_details": {
|
|
"reasoning_tokens": 10
|
|
},
|
|
"total_tokens": 160
|
|
},
|
|
"user": null,
|
|
"metadata": {},
|
|
"completed_at": 1700000007
|
|
},
|
|
"frames": "event: response.created\ndata: {\"response\":{\"id\":\"resp_golden_1\",\"object\":\"response\",\"created_at\":1700000000,\"status\":\"in_progress\",\"error\":null,\"incomplete_details\":null,\"instructions\":null,\"max_output_tokens\":null,\"model\":\"strata-local\",\"output\":[],\"parallel_tool_calls\":true,\"previous_response_id\":null,\"reasoning\":{\"effort\":\"high\"},\"store\":true,\"temperature\":0.0,\"text\":{\"format\":{\"type\":\"text\"}},\"tool_choice\":\"auto\",\"tools\":[{\"type\":\"function\",\"name\":\"lookup\",\"description\":\"Find a thing\",\"parameters\":{\"type\":\"object\",\"properties\":{\"q\":{\"type\":\"string\"},\"n\":{\"type\":\"integer\"}},\"required\":[\"q\"]}}],\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":null,\"user\":null,\"metadata\":{}},\"type\":\"response.created\",\"sequence_number\":0}\n\nevent: response.in_progress\ndata: {\"response\":{\"id\":\"resp_golden_1\",\"object\":\"response\",\"created_at\":1700000000,\"status\":\"in_progress\",\"error\":null,\"incomplete_details\":null,\"instructions\":null,\"max_output_tokens\":null,\"model\":\"strata-local\",\"output\":[],\"parallel_tool_calls\":true,\"previous_response_id\":null,\"reasoning\":{\"effort\":\"high\"},\"store\":true,\"temperature\":0.0,\"text\":{\"format\":{\"type\":\"text\"}},\"tool_choice\":\"auto\",\"tools\":[{\"type\":\"function\",\"name\":\"lookup\",\"description\":\"Find a thing\",\"parameters\":{\"type\":\"object\",\"properties\":{\"q\":{\"type\":\"string\"},\"n\":{\"type\":\"integer\"}},\"required\":[\"q\"]}}],\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":null,\"user\":null,\"metadata\":{}},\"type\":\"response.in_progress\",\"sequence_number\":1}\n\nevent: response.output_item.added\ndata: {\"response_id\":\"resp_golden_1\",\"output_index\":0,\"item\":{\"id\":\"rs_golden_1_0\",\"type\":\"reasoning\",\"status\":\"in_progress\",\"summary\":[],\"content\":[]},\"type\":\"response.output_item.added\",\"sequence_number\":2}\n\nevent: response.content_part.added\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"rs_golden_1_0\",\"output_index\":0,\"content_index\":0,\"part\":{\"type\":\"reasoning_text\",\"text\":\"\"},\"type\":\"response.content_part.added\",\"sequence_number\":3}\n\nevent: response.reasoning_text.delta\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"rs_golden_1_0\",\"output_index\":0,\"content_index\":0,\"delta\":\"think \",\"type\":\"response.reasoning_text.delta\",\"sequence_number\":4}\n\nevent: response.reasoning_text.delta\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"rs_golden_1_0\",\"output_index\":0,\"content_index\":0,\"delta\":\"hard\",\"type\":\"response.reasoning_text.delta\",\"sequence_number\":5}\n\nevent: response.reasoning_text.done\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"rs_golden_1_0\",\"output_index\":0,\"content_index\":0,\"text\":\"think hard\",\"type\":\"response.reasoning_text.done\",\"sequence_number\":6}\n\nevent: response.content_part.done\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"rs_golden_1_0\",\"output_index\":0,\"content_index\":0,\"part\":{\"type\":\"reasoning_text\",\"text\":\"think hard\"},\"type\":\"response.content_part.done\",\"sequence_number\":7}\n\nevent: response.output_item.done\ndata: {\"response_id\":\"resp_golden_1\",\"output_index\":0,\"item\":{\"id\":\"rs_golden_1_0\",\"type\":\"reasoning\",\"status\":\"completed\",\"summary\":[],\"content\":[{\"type\":\"reasoning_text\",\"text\":\"think hard\"}]},\"type\":\"response.output_item.done\",\"sequence_number\":8}\n\nevent: response.output_item.added\ndata: {\"response_id\":\"resp_golden_1\",\"output_index\":1,\"item\":{\"id\":\"msg_golden_1_1\",\"type\":\"message\",\"status\":\"in_progress\",\"role\":\"assistant\",\"content\":[]},\"type\":\"response.output_item.added\",\"sequence_number\":9}\n\nevent: response.content_part.added\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"msg_golden_1_1\",\"output_index\":1,\"content_index\":0,\"part\":{\"type\":\"output_text\",\"text\":\"\",\"annotations\":[],\"logprobs\":[]},\"type\":\"response.content_part.added\",\"sequence_number\":10}\n\nevent: response.output_text.delta\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"msg_golden_1_1\",\"output_index\":1,\"content_index\":0,\"delta\":\"I will look.\",\"logprobs\":[],\"type\":\"response.output_text.delta\",\"sequence_number\":11}\n\nevent: response.output_text.done\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"msg_golden_1_1\",\"output_index\":1,\"content_index\":0,\"text\":\"I will look.\",\"logprobs\":[],\"type\":\"response.output_text.done\",\"sequence_number\":12}\n\nevent: response.content_part.done\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"msg_golden_1_1\",\"output_index\":1,\"content_index\":0,\"part\":{\"type\":\"output_text\",\"text\":\"I will look.\",\"annotations\":[],\"logprobs\":[]},\"type\":\"response.content_part.done\",\"sequence_number\":13}\n\nevent: response.output_item.done\ndata: {\"response_id\":\"resp_golden_1\",\"output_index\":1,\"item\":{\"id\":\"msg_golden_1_1\",\"type\":\"message\",\"status\":\"completed\",\"role\":\"assistant\",\"content\":[{\"type\":\"output_text\",\"text\":\"I will look.\",\"annotations\":[],\"logprobs\":[]}]},\"type\":\"response.output_item.done\",\"sequence_number\":14}\n\nevent: response.output_item.added\ndata: {\"response_id\":\"resp_golden_1\",\"output_index\":2,\"item\":{\"id\":\"fc_golden_1_2\",\"type\":\"function_call\",\"status\":\"in_progress\",\"call_id\":\"call_1_2\",\"name\":\"lookup\",\"arguments\":\"\"},\"type\":\"response.output_item.added\",\"sequence_number\":15}\n\nevent: response.function_call_arguments.delta\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"fc_golden_1_2\",\"output_index\":2,\"delta\":\"{\\\"q\\\":\",\"type\":\"response.function_call_arguments.delta\",\"sequence_number\":16}\n\nevent: response.function_call_arguments.delta\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"fc_golden_1_2\",\"output_index\":2,\"delta\":\"\\\"x\\\"}\",\"type\":\"response.function_call_arguments.delta\",\"sequence_number\":17}\n\nevent: response.function_call_arguments.done\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"fc_golden_1_2\",\"output_index\":2,\"arguments\":\"{\\\"q\\\":\\\"x\\\"}\",\"type\":\"response.function_call_arguments.done\",\"sequence_number\":18}\n\nevent: response.output_item.done\ndata: {\"response_id\":\"resp_golden_1\",\"output_index\":2,\"item\":{\"id\":\"fc_golden_1_2\",\"type\":\"function_call\",\"status\":\"completed\",\"call_id\":\"call_1_2\",\"name\":\"lookup\",\"arguments\":\"{\\\"q\\\":\\\"x\\\"}\"},\"type\":\"response.output_item.done\",\"sequence_number\":19}\n\nevent: response.completed\ndata: {\"response\":{\"id\":\"resp_golden_1\",\"object\":\"response\",\"created_at\":1700000000,\"status\":\"completed\",\"error\":null,\"incomplete_details\":null,\"instructions\":null,\"max_output_tokens\":null,\"model\":\"strata-local\",\"output\":[{\"id\":\"rs_golden_1_0\",\"type\":\"reasoning\",\"status\":\"completed\",\"summary\":[],\"content\":[{\"type\":\"reasoning_text\",\"text\":\"think hard\"}]},{\"id\":\"msg_golden_1_1\",\"type\":\"message\",\"status\":\"completed\",\"role\":\"assistant\",\"content\":[{\"type\":\"output_text\",\"text\":\"I will look.\",\"annotations\":[],\"logprobs\":[]}]},{\"id\":\"fc_golden_1_2\",\"type\":\"function_call\",\"status\":\"completed\",\"call_id\":\"call_1_2\",\"name\":\"lookup\",\"arguments\":\"{\\\"q\\\":\\\"x\\\"}\"}],\"parallel_tool_calls\":true,\"previous_response_id\":null,\"reasoning\":{\"effort\":\"high\"},\"store\":true,\"temperature\":0.0,\"text\":{\"format\":{\"type\":\"text\"}},\"tool_choice\":\"auto\",\"tools\":[{\"type\":\"function\",\"name\":\"lookup\",\"description\":\"Find a thing\",\"parameters\":{\"type\":\"object\",\"properties\":{\"q\":{\"type\":\"string\"},\"n\":{\"type\":\"integer\"}},\"required\":[\"q\"]}}],\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":{\"input_tokens\":120,\"input_tokens_details\":{\"cached_tokens\":64},\"output_tokens\":40,\"output_tokens_details\":{\"reasoning_tokens\":10},\"total_tokens\":160},\"user\":null,\"metadata\":{},\"completed_at\":1700000007},\"type\":\"response.completed\",\"sequence_number\":20}\n\n"
|
|
}
|
|
},
|
|
{
|
|
"name": "custom call",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "custom",
|
|
"name": "run",
|
|
"description": "Run a shell command"
|
|
}
|
|
]
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "function_call",
|
|
"name": "run",
|
|
"call_id": "call_c",
|
|
"argument_deltas": [
|
|
"{\"input\":\"ls\"}"
|
|
]
|
|
}
|
|
],
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"output_tokens": 40,
|
|
"reasoning_tokens": 10,
|
|
"cached_tokens": 64
|
|
},
|
|
"incomplete": false,
|
|
"expected": {
|
|
"response": {
|
|
"id": "resp_golden_1",
|
|
"object": "response",
|
|
"created_at": 1700000000,
|
|
"status": "completed",
|
|
"error": null,
|
|
"incomplete_details": null,
|
|
"instructions": null,
|
|
"max_output_tokens": null,
|
|
"model": "strata-local",
|
|
"output": [
|
|
{
|
|
"id": "ctc_golden_1_0",
|
|
"type": "custom_tool_call",
|
|
"status": "completed",
|
|
"call_id": "call_c",
|
|
"name": "run",
|
|
"input": "ls"
|
|
}
|
|
],
|
|
"parallel_tool_calls": true,
|
|
"previous_response_id": null,
|
|
"reasoning": {
|
|
"effort": null,
|
|
"summary": null
|
|
},
|
|
"store": true,
|
|
"temperature": 0.0,
|
|
"text": {
|
|
"format": {
|
|
"type": "text"
|
|
}
|
|
},
|
|
"tool_choice": "auto",
|
|
"tools": [
|
|
{
|
|
"type": "custom",
|
|
"name": "run",
|
|
"description": "Run a shell command"
|
|
}
|
|
],
|
|
"top_p": 1.0,
|
|
"truncation": "disabled",
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"input_tokens_details": {
|
|
"cached_tokens": 64
|
|
},
|
|
"output_tokens": 40,
|
|
"output_tokens_details": {
|
|
"reasoning_tokens": 10
|
|
},
|
|
"total_tokens": 160
|
|
},
|
|
"user": null,
|
|
"metadata": {},
|
|
"completed_at": 1700000007
|
|
},
|
|
"frames": "event: response.created\ndata: {\"response\":{\"id\":\"resp_golden_1\",\"object\":\"response\",\"created_at\":1700000000,\"status\":\"in_progress\",\"error\":null,\"incomplete_details\":null,\"instructions\":null,\"max_output_tokens\":null,\"model\":\"strata-local\",\"output\":[],\"parallel_tool_calls\":true,\"previous_response_id\":null,\"reasoning\":{\"effort\":null,\"summary\":null},\"store\":true,\"temperature\":0.0,\"text\":{\"format\":{\"type\":\"text\"}},\"tool_choice\":\"auto\",\"tools\":[{\"type\":\"custom\",\"name\":\"run\",\"description\":\"Run a shell command\"}],\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":null,\"user\":null,\"metadata\":{}},\"type\":\"response.created\",\"sequence_number\":0}\n\nevent: response.in_progress\ndata: {\"response\":{\"id\":\"resp_golden_1\",\"object\":\"response\",\"created_at\":1700000000,\"status\":\"in_progress\",\"error\":null,\"incomplete_details\":null,\"instructions\":null,\"max_output_tokens\":null,\"model\":\"strata-local\",\"output\":[],\"parallel_tool_calls\":true,\"previous_response_id\":null,\"reasoning\":{\"effort\":null,\"summary\":null},\"store\":true,\"temperature\":0.0,\"text\":{\"format\":{\"type\":\"text\"}},\"tool_choice\":\"auto\",\"tools\":[{\"type\":\"custom\",\"name\":\"run\",\"description\":\"Run a shell command\"}],\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":null,\"user\":null,\"metadata\":{}},\"type\":\"response.in_progress\",\"sequence_number\":1}\n\nevent: response.output_item.added\ndata: {\"response_id\":\"resp_golden_1\",\"output_index\":0,\"item\":{\"id\":\"ctc_golden_1_0\",\"type\":\"custom_tool_call\",\"status\":\"in_progress\",\"call_id\":\"call_c\",\"name\":\"run\",\"input\":\"\"},\"type\":\"response.output_item.added\",\"sequence_number\":2}\n\nevent: response.custom_tool_call_input.delta\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"ctc_golden_1_0\",\"output_index\":0,\"delta\":\"ls\",\"type\":\"response.custom_tool_call_input.delta\",\"sequence_number\":3}\n\nevent: response.custom_tool_call_input.done\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"ctc_golden_1_0\",\"output_index\":0,\"input\":\"ls\",\"type\":\"response.custom_tool_call_input.done\",\"sequence_number\":4}\n\nevent: response.output_item.done\ndata: {\"response_id\":\"resp_golden_1\",\"output_index\":0,\"item\":{\"id\":\"ctc_golden_1_0\",\"type\":\"custom_tool_call\",\"status\":\"completed\",\"call_id\":\"call_c\",\"name\":\"run\",\"input\":\"ls\"},\"type\":\"response.output_item.done\",\"sequence_number\":5}\n\nevent: response.completed\ndata: {\"response\":{\"id\":\"resp_golden_1\",\"object\":\"response\",\"created_at\":1700000000,\"status\":\"completed\",\"error\":null,\"incomplete_details\":null,\"instructions\":null,\"max_output_tokens\":null,\"model\":\"strata-local\",\"output\":[{\"id\":\"ctc_golden_1_0\",\"type\":\"custom_tool_call\",\"status\":\"completed\",\"call_id\":\"call_c\",\"name\":\"run\",\"input\":\"ls\"}],\"parallel_tool_calls\":true,\"previous_response_id\":null,\"reasoning\":{\"effort\":null,\"summary\":null},\"store\":true,\"temperature\":0.0,\"text\":{\"format\":{\"type\":\"text\"}},\"tool_choice\":\"auto\",\"tools\":[{\"type\":\"custom\",\"name\":\"run\",\"description\":\"Run a shell command\"}],\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":{\"input_tokens\":120,\"input_tokens_details\":{\"cached_tokens\":64},\"output_tokens\":40,\"output_tokens_details\":{\"reasoning_tokens\":10},\"total_tokens\":160},\"user\":null,\"metadata\":{},\"completed_at\":1700000007},\"type\":\"response.completed\",\"sequence_number\":6}\n\n"
|
|
}
|
|
},
|
|
{
|
|
"name": "namespaced call",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "namespace",
|
|
"name": "code",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "edit",
|
|
"description": "edit a file",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "function_call",
|
|
"name": "code__edit",
|
|
"call_id": "call_n",
|
|
"argument_deltas": [
|
|
"{\"path\":\"a\"}"
|
|
]
|
|
}
|
|
],
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"output_tokens": 40,
|
|
"reasoning_tokens": 10,
|
|
"cached_tokens": 64
|
|
},
|
|
"incomplete": false,
|
|
"expected": {
|
|
"error": "function call names an undeclared tool: code__edit"
|
|
}
|
|
},
|
|
{
|
|
"name": "incomplete",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello"
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "reasoning",
|
|
"deltas": [
|
|
"cut"
|
|
],
|
|
"complete": false
|
|
},
|
|
{
|
|
"type": "text",
|
|
"deltas": [
|
|
"par"
|
|
]
|
|
}
|
|
],
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"output_tokens": 40,
|
|
"reasoning_tokens": 10,
|
|
"cached_tokens": 64
|
|
},
|
|
"incomplete": true,
|
|
"expected": {
|
|
"response": {
|
|
"id": "resp_golden_1",
|
|
"object": "response",
|
|
"created_at": 1700000000,
|
|
"status": "incomplete",
|
|
"error": null,
|
|
"incomplete_details": {
|
|
"reason": "max_output_tokens"
|
|
},
|
|
"instructions": null,
|
|
"max_output_tokens": null,
|
|
"model": "strata-local",
|
|
"output": [
|
|
{
|
|
"id": "rs_golden_1_0",
|
|
"type": "reasoning",
|
|
"status": "incomplete",
|
|
"summary": [],
|
|
"content": [
|
|
{
|
|
"type": "reasoning_text",
|
|
"text": "cut"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "msg_golden_1_1",
|
|
"type": "message",
|
|
"status": "incomplete",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "par",
|
|
"annotations": [],
|
|
"logprobs": []
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"parallel_tool_calls": true,
|
|
"previous_response_id": null,
|
|
"reasoning": {
|
|
"effort": null,
|
|
"summary": null
|
|
},
|
|
"store": true,
|
|
"temperature": 0.0,
|
|
"text": {
|
|
"format": {
|
|
"type": "text"
|
|
}
|
|
},
|
|
"tool_choice": "auto",
|
|
"tools": [],
|
|
"top_p": 1.0,
|
|
"truncation": "disabled",
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"input_tokens_details": {
|
|
"cached_tokens": 64
|
|
},
|
|
"output_tokens": 40,
|
|
"output_tokens_details": {
|
|
"reasoning_tokens": 10
|
|
},
|
|
"total_tokens": 160
|
|
},
|
|
"user": null,
|
|
"metadata": {}
|
|
},
|
|
"frames": "event: response.created\ndata: {\"response\":{\"id\":\"resp_golden_1\",\"object\":\"response\",\"created_at\":1700000000,\"status\":\"in_progress\",\"error\":null,\"incomplete_details\":null,\"instructions\":null,\"max_output_tokens\":null,\"model\":\"strata-local\",\"output\":[],\"parallel_tool_calls\":true,\"previous_response_id\":null,\"reasoning\":{\"effort\":null,\"summary\":null},\"store\":true,\"temperature\":0.0,\"text\":{\"format\":{\"type\":\"text\"}},\"tool_choice\":\"auto\",\"tools\":[],\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":null,\"user\":null,\"metadata\":{}},\"type\":\"response.created\",\"sequence_number\":0}\n\nevent: response.in_progress\ndata: {\"response\":{\"id\":\"resp_golden_1\",\"object\":\"response\",\"created_at\":1700000000,\"status\":\"in_progress\",\"error\":null,\"incomplete_details\":null,\"instructions\":null,\"max_output_tokens\":null,\"model\":\"strata-local\",\"output\":[],\"parallel_tool_calls\":true,\"previous_response_id\":null,\"reasoning\":{\"effort\":null,\"summary\":null},\"store\":true,\"temperature\":0.0,\"text\":{\"format\":{\"type\":\"text\"}},\"tool_choice\":\"auto\",\"tools\":[],\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":null,\"user\":null,\"metadata\":{}},\"type\":\"response.in_progress\",\"sequence_number\":1}\n\nevent: response.output_item.added\ndata: {\"response_id\":\"resp_golden_1\",\"output_index\":0,\"item\":{\"id\":\"rs_golden_1_0\",\"type\":\"reasoning\",\"status\":\"in_progress\",\"summary\":[],\"content\":[]},\"type\":\"response.output_item.added\",\"sequence_number\":2}\n\nevent: response.content_part.added\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"rs_golden_1_0\",\"output_index\":0,\"content_index\":0,\"part\":{\"type\":\"reasoning_text\",\"text\":\"\"},\"type\":\"response.content_part.added\",\"sequence_number\":3}\n\nevent: response.reasoning_text.delta\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"rs_golden_1_0\",\"output_index\":0,\"content_index\":0,\"delta\":\"cut\",\"type\":\"response.reasoning_text.delta\",\"sequence_number\":4}\n\nevent: response.reasoning_text.done\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"rs_golden_1_0\",\"output_index\":0,\"content_index\":0,\"text\":\"cut\",\"type\":\"response.reasoning_text.done\",\"sequence_number\":5}\n\nevent: response.content_part.done\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"rs_golden_1_0\",\"output_index\":0,\"content_index\":0,\"part\":{\"type\":\"reasoning_text\",\"text\":\"cut\"},\"type\":\"response.content_part.done\",\"sequence_number\":6}\n\nevent: response.output_item.done\ndata: {\"response_id\":\"resp_golden_1\",\"output_index\":0,\"item\":{\"id\":\"rs_golden_1_0\",\"type\":\"reasoning\",\"status\":\"incomplete\",\"summary\":[],\"content\":[{\"type\":\"reasoning_text\",\"text\":\"cut\"}]},\"type\":\"response.output_item.done\",\"sequence_number\":7}\n\nevent: response.output_item.added\ndata: {\"response_id\":\"resp_golden_1\",\"output_index\":1,\"item\":{\"id\":\"msg_golden_1_1\",\"type\":\"message\",\"status\":\"in_progress\",\"role\":\"assistant\",\"content\":[]},\"type\":\"response.output_item.added\",\"sequence_number\":8}\n\nevent: response.content_part.added\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"msg_golden_1_1\",\"output_index\":1,\"content_index\":0,\"part\":{\"type\":\"output_text\",\"text\":\"\",\"annotations\":[],\"logprobs\":[]},\"type\":\"response.content_part.added\",\"sequence_number\":9}\n\nevent: response.output_text.delta\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"msg_golden_1_1\",\"output_index\":1,\"content_index\":0,\"delta\":\"par\",\"logprobs\":[],\"type\":\"response.output_text.delta\",\"sequence_number\":10}\n\nevent: response.output_text.done\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"msg_golden_1_1\",\"output_index\":1,\"content_index\":0,\"text\":\"par\",\"logprobs\":[],\"type\":\"response.output_text.done\",\"sequence_number\":11}\n\nevent: response.content_part.done\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"msg_golden_1_1\",\"output_index\":1,\"content_index\":0,\"part\":{\"type\":\"output_text\",\"text\":\"par\",\"annotations\":[],\"logprobs\":[]},\"type\":\"response.content_part.done\",\"sequence_number\":12}\n\nevent: response.output_item.done\ndata: {\"response_id\":\"resp_golden_1\",\"output_index\":1,\"item\":{\"id\":\"msg_golden_1_1\",\"type\":\"message\",\"status\":\"incomplete\",\"role\":\"assistant\",\"content\":[{\"type\":\"output_text\",\"text\":\"par\",\"annotations\":[],\"logprobs\":[]}]},\"type\":\"response.output_item.done\",\"sequence_number\":13}\n\nevent: response.incomplete\ndata: {\"response\":{\"id\":\"resp_golden_1\",\"object\":\"response\",\"created_at\":1700000000,\"status\":\"incomplete\",\"error\":null,\"incomplete_details\":{\"reason\":\"max_output_tokens\"},\"instructions\":null,\"max_output_tokens\":null,\"model\":\"strata-local\",\"output\":[{\"id\":\"rs_golden_1_0\",\"type\":\"reasoning\",\"status\":\"incomplete\",\"summary\":[],\"content\":[{\"type\":\"reasoning_text\",\"text\":\"cut\"}]},{\"id\":\"msg_golden_1_1\",\"type\":\"message\",\"status\":\"incomplete\",\"role\":\"assistant\",\"content\":[{\"type\":\"output_text\",\"text\":\"par\",\"annotations\":[],\"logprobs\":[]}]}],\"parallel_tool_calls\":true,\"previous_response_id\":null,\"reasoning\":{\"effort\":null,\"summary\":null},\"store\":true,\"temperature\":0.0,\"text\":{\"format\":{\"type\":\"text\"}},\"tool_choice\":\"auto\",\"tools\":[],\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":{\"input_tokens\":120,\"input_tokens_details\":{\"cached_tokens\":64},\"output_tokens\":40,\"output_tokens_details\":{\"reasoning_tokens\":10},\"total_tokens\":160},\"user\":null,\"metadata\":{}},\"type\":\"response.incomplete\",\"sequence_number\":14}\n\n"
|
|
}
|
|
},
|
|
{
|
|
"name": "json object text",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"text": {
|
|
"format": {
|
|
"type": "json_object"
|
|
}
|
|
}
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "text",
|
|
"deltas": [
|
|
"{\"a\":1}"
|
|
]
|
|
}
|
|
],
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"output_tokens": 40,
|
|
"reasoning_tokens": 10,
|
|
"cached_tokens": 64
|
|
},
|
|
"incomplete": false,
|
|
"expected": {
|
|
"response": {
|
|
"id": "resp_golden_1",
|
|
"object": "response",
|
|
"created_at": 1700000000,
|
|
"status": "completed",
|
|
"error": null,
|
|
"incomplete_details": null,
|
|
"instructions": null,
|
|
"max_output_tokens": null,
|
|
"model": "strata-local",
|
|
"output": [
|
|
{
|
|
"id": "msg_golden_1_0",
|
|
"type": "message",
|
|
"status": "completed",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "{\"a\":1}",
|
|
"annotations": [],
|
|
"logprobs": []
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"parallel_tool_calls": true,
|
|
"previous_response_id": null,
|
|
"reasoning": {
|
|
"effort": null,
|
|
"summary": null
|
|
},
|
|
"store": true,
|
|
"temperature": 0.0,
|
|
"text": {
|
|
"format": {
|
|
"type": "json_object"
|
|
}
|
|
},
|
|
"tool_choice": "auto",
|
|
"tools": [],
|
|
"top_p": 1.0,
|
|
"truncation": "disabled",
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"input_tokens_details": {
|
|
"cached_tokens": 64
|
|
},
|
|
"output_tokens": 40,
|
|
"output_tokens_details": {
|
|
"reasoning_tokens": 10
|
|
},
|
|
"total_tokens": 160
|
|
},
|
|
"user": null,
|
|
"metadata": {},
|
|
"completed_at": 1700000007
|
|
},
|
|
"frames": "event: response.created\ndata: {\"response\":{\"id\":\"resp_golden_1\",\"object\":\"response\",\"created_at\":1700000000,\"status\":\"in_progress\",\"error\":null,\"incomplete_details\":null,\"instructions\":null,\"max_output_tokens\":null,\"model\":\"strata-local\",\"output\":[],\"parallel_tool_calls\":true,\"previous_response_id\":null,\"reasoning\":{\"effort\":null,\"summary\":null},\"store\":true,\"temperature\":0.0,\"text\":{\"format\":{\"type\":\"json_object\"}},\"tool_choice\":\"auto\",\"tools\":[],\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":null,\"user\":null,\"metadata\":{}},\"type\":\"response.created\",\"sequence_number\":0}\n\nevent: response.in_progress\ndata: {\"response\":{\"id\":\"resp_golden_1\",\"object\":\"response\",\"created_at\":1700000000,\"status\":\"in_progress\",\"error\":null,\"incomplete_details\":null,\"instructions\":null,\"max_output_tokens\":null,\"model\":\"strata-local\",\"output\":[],\"parallel_tool_calls\":true,\"previous_response_id\":null,\"reasoning\":{\"effort\":null,\"summary\":null},\"store\":true,\"temperature\":0.0,\"text\":{\"format\":{\"type\":\"json_object\"}},\"tool_choice\":\"auto\",\"tools\":[],\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":null,\"user\":null,\"metadata\":{}},\"type\":\"response.in_progress\",\"sequence_number\":1}\n\nevent: response.output_item.added\ndata: {\"response_id\":\"resp_golden_1\",\"output_index\":0,\"item\":{\"id\":\"msg_golden_1_0\",\"type\":\"message\",\"status\":\"in_progress\",\"role\":\"assistant\",\"content\":[]},\"type\":\"response.output_item.added\",\"sequence_number\":2}\n\nevent: response.content_part.added\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"msg_golden_1_0\",\"output_index\":0,\"content_index\":0,\"part\":{\"type\":\"output_text\",\"text\":\"\",\"annotations\":[],\"logprobs\":[]},\"type\":\"response.content_part.added\",\"sequence_number\":3}\n\nevent: response.output_text.delta\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"msg_golden_1_0\",\"output_index\":0,\"content_index\":0,\"delta\":\"{\\\"a\\\":1}\",\"logprobs\":[],\"type\":\"response.output_text.delta\",\"sequence_number\":4}\n\nevent: response.output_text.done\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"msg_golden_1_0\",\"output_index\":0,\"content_index\":0,\"text\":\"{\\\"a\\\":1}\",\"logprobs\":[],\"type\":\"response.output_text.done\",\"sequence_number\":5}\n\nevent: response.content_part.done\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"msg_golden_1_0\",\"output_index\":0,\"content_index\":0,\"part\":{\"type\":\"output_text\",\"text\":\"{\\\"a\\\":1}\",\"annotations\":[],\"logprobs\":[]},\"type\":\"response.content_part.done\",\"sequence_number\":6}\n\nevent: response.output_item.done\ndata: {\"response_id\":\"resp_golden_1\",\"output_index\":0,\"item\":{\"id\":\"msg_golden_1_0\",\"type\":\"message\",\"status\":\"completed\",\"role\":\"assistant\",\"content\":[{\"type\":\"output_text\",\"text\":\"{\\\"a\\\":1}\",\"annotations\":[],\"logprobs\":[]}]},\"type\":\"response.output_item.done\",\"sequence_number\":7}\n\nevent: response.completed\ndata: {\"response\":{\"id\":\"resp_golden_1\",\"object\":\"response\",\"created_at\":1700000000,\"status\":\"completed\",\"error\":null,\"incomplete_details\":null,\"instructions\":null,\"max_output_tokens\":null,\"model\":\"strata-local\",\"output\":[{\"id\":\"msg_golden_1_0\",\"type\":\"message\",\"status\":\"completed\",\"role\":\"assistant\",\"content\":[{\"type\":\"output_text\",\"text\":\"{\\\"a\\\":1}\",\"annotations\":[],\"logprobs\":[]}]}],\"parallel_tool_calls\":true,\"previous_response_id\":null,\"reasoning\":{\"effort\":null,\"summary\":null},\"store\":true,\"temperature\":0.0,\"text\":{\"format\":{\"type\":\"json_object\"}},\"tool_choice\":\"auto\",\"tools\":[],\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":{\"input_tokens\":120,\"input_tokens_details\":{\"cached_tokens\":64},\"output_tokens\":40,\"output_tokens_details\":{\"reasoning_tokens\":10},\"total_tokens\":160},\"user\":null,\"metadata\":{},\"completed_at\":1700000007},\"type\":\"response.completed\",\"sequence_number\":8}\n\n"
|
|
}
|
|
},
|
|
{
|
|
"name": "json object violated",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"text": {
|
|
"format": {
|
|
"type": "json_object"
|
|
}
|
|
}
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "text",
|
|
"deltas": [
|
|
"[1]"
|
|
]
|
|
}
|
|
],
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"output_tokens": 40,
|
|
"reasoning_tokens": 10,
|
|
"cached_tokens": 64
|
|
},
|
|
"incomplete": false,
|
|
"expected": {
|
|
"error": "text.format requires a JSON object"
|
|
}
|
|
},
|
|
{
|
|
"name": "json schema violated",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"text": {
|
|
"format": {
|
|
"type": "json_schema",
|
|
"name": "o",
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"a": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"a"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "text",
|
|
"deltas": [
|
|
"{}"
|
|
]
|
|
}
|
|
],
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"output_tokens": 40,
|
|
"reasoning_tokens": 10,
|
|
"cached_tokens": 64
|
|
},
|
|
"incomplete": false,
|
|
"expected": {
|
|
"error": "text.format output violates schema: \"a\" is a required property"
|
|
}
|
|
},
|
|
{
|
|
"name": "undeclared tool",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "function_call",
|
|
"name": "nope",
|
|
"call_id": "c1",
|
|
"argument_deltas": [
|
|
"{}"
|
|
]
|
|
}
|
|
],
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"output_tokens": 40,
|
|
"reasoning_tokens": 10,
|
|
"cached_tokens": 64
|
|
},
|
|
"incomplete": false,
|
|
"expected": {
|
|
"error": "function call names an undeclared tool: nope"
|
|
}
|
|
},
|
|
{
|
|
"name": "args violate schema",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "function_call",
|
|
"name": "lookup",
|
|
"call_id": "c1",
|
|
"argument_deltas": [
|
|
"{\"n\":1}"
|
|
]
|
|
}
|
|
],
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"output_tokens": 40,
|
|
"reasoning_tokens": 10,
|
|
"cached_tokens": 64
|
|
},
|
|
"incomplete": false,
|
|
"expected": {
|
|
"error": "function call arguments violate schema: \"q\" is a required property"
|
|
}
|
|
},
|
|
{
|
|
"name": "args not object",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "function_call",
|
|
"name": "lookup",
|
|
"call_id": "c1",
|
|
"argument_deltas": [
|
|
"[1]"
|
|
]
|
|
}
|
|
],
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"output_tokens": 40,
|
|
"reasoning_tokens": 10,
|
|
"cached_tokens": 64
|
|
},
|
|
"incomplete": false,
|
|
"expected": {
|
|
"error": "function call arguments must be a JSON object"
|
|
}
|
|
},
|
|
{
|
|
"name": "duplicate call id",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "function_call",
|
|
"name": "lookup",
|
|
"call_id": "c1",
|
|
"argument_deltas": [
|
|
"{\"q\":\"a\"}"
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"name": "lookup",
|
|
"call_id": "c1",
|
|
"argument_deltas": [
|
|
"{\"q\":\"b\"}"
|
|
]
|
|
}
|
|
],
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"output_tokens": 40,
|
|
"reasoning_tokens": 10,
|
|
"cached_tokens": 64
|
|
},
|
|
"incomplete": false,
|
|
"expected": {
|
|
"error": "function call_id must be unique"
|
|
}
|
|
},
|
|
{
|
|
"name": "required no call",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"tool_choice": "required"
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "text",
|
|
"deltas": [
|
|
"no"
|
|
]
|
|
}
|
|
],
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"output_tokens": 40,
|
|
"reasoning_tokens": 10,
|
|
"cached_tokens": 64
|
|
},
|
|
"incomplete": false,
|
|
"expected": {
|
|
"error": "required tool choice produced no tool call"
|
|
}
|
|
},
|
|
{
|
|
"name": "none forbids",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"tool_choice": "none"
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "function_call",
|
|
"name": "lookup",
|
|
"call_id": "c1",
|
|
"argument_deltas": [
|
|
"{\"q\":\"a\"}"
|
|
]
|
|
}
|
|
],
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"output_tokens": 40,
|
|
"reasoning_tokens": 10,
|
|
"cached_tokens": 64
|
|
},
|
|
"incomplete": false,
|
|
"expected": {
|
|
"error": "tool_choice none forbids tool calls"
|
|
}
|
|
},
|
|
{
|
|
"name": "parallel false two",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"parallel_tool_calls": false
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "function_call",
|
|
"name": "lookup",
|
|
"call_id": "c1",
|
|
"argument_deltas": [
|
|
"{\"q\":\"a\"}"
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"name": "lookup",
|
|
"call_id": "c2",
|
|
"argument_deltas": [
|
|
"{\"q\":\"b\"}"
|
|
]
|
|
}
|
|
],
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"output_tokens": 40,
|
|
"reasoning_tokens": 10,
|
|
"cached_tokens": 64
|
|
},
|
|
"incomplete": false,
|
|
"expected": {
|
|
"error": "parallel_tool_calls false permits at most one tool call"
|
|
}
|
|
},
|
|
{
|
|
"name": "forced mismatch",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "custom",
|
|
"name": "run",
|
|
"description": "Run a shell command"
|
|
}
|
|
],
|
|
"tool_choice": {
|
|
"type": "function",
|
|
"name": "lookup"
|
|
}
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "function_call",
|
|
"name": "run",
|
|
"call_id": "c1",
|
|
"argument_deltas": [
|
|
"{\"input\":\"x\"}"
|
|
]
|
|
}
|
|
],
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"output_tokens": 40,
|
|
"reasoning_tokens": 10,
|
|
"cached_tokens": 64
|
|
},
|
|
"incomplete": false,
|
|
"expected": {
|
|
"error": "generated tool does not match forced tool choice"
|
|
}
|
|
},
|
|
{
|
|
"name": "empty items",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello"
|
|
},
|
|
"items": [],
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"output_tokens": 40,
|
|
"reasoning_tokens": 10,
|
|
"cached_tokens": 64
|
|
},
|
|
"incomplete": false,
|
|
"expected": {
|
|
"error": "a completed response needs an output item"
|
|
}
|
|
},
|
|
{
|
|
"name": "usage cached over input",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello"
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "text",
|
|
"deltas": [
|
|
"x"
|
|
]
|
|
}
|
|
],
|
|
"usage": {
|
|
"input_tokens": 1,
|
|
"output_tokens": 1,
|
|
"reasoning_tokens": 0,
|
|
"cached_tokens": 2
|
|
},
|
|
"incomplete": false,
|
|
"expected": {
|
|
"error": "usage detail counters exceed their parent count"
|
|
}
|
|
},
|
|
{
|
|
"name": "unfinished reasoning",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello"
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "reasoning",
|
|
"deltas": [
|
|
"a"
|
|
],
|
|
"complete": false
|
|
}
|
|
],
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"output_tokens": 40,
|
|
"reasoning_tokens": 10,
|
|
"cached_tokens": 64
|
|
},
|
|
"incomplete": false,
|
|
"expected": {
|
|
"error": "unfinished reasoning needs an incomplete response"
|
|
}
|
|
},
|
|
{
|
|
"name": "metadata and echo",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"instructions": "sys",
|
|
"max_output_tokens": 99,
|
|
"previous_response_id": "resp_prev",
|
|
"store": false,
|
|
"metadata": {
|
|
"k": "v"
|
|
},
|
|
"temperature": 0.5,
|
|
"top_p": 0.9,
|
|
"truncation": "disabled",
|
|
"parallel_tool_calls": false
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "text",
|
|
"deltas": [
|
|
"x"
|
|
]
|
|
}
|
|
],
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"output_tokens": 40,
|
|
"reasoning_tokens": 10,
|
|
"cached_tokens": 64
|
|
},
|
|
"incomplete": false,
|
|
"expected": {
|
|
"response": {
|
|
"id": "resp_golden_1",
|
|
"object": "response",
|
|
"created_at": 1700000000,
|
|
"status": "completed",
|
|
"error": null,
|
|
"incomplete_details": null,
|
|
"instructions": "sys",
|
|
"max_output_tokens": 99,
|
|
"model": "strata-local",
|
|
"output": [
|
|
{
|
|
"id": "msg_golden_1_0",
|
|
"type": "message",
|
|
"status": "completed",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "x",
|
|
"annotations": [],
|
|
"logprobs": []
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"parallel_tool_calls": false,
|
|
"previous_response_id": "resp_prev",
|
|
"reasoning": {
|
|
"effort": null,
|
|
"summary": null
|
|
},
|
|
"store": false,
|
|
"temperature": 0.5,
|
|
"text": {
|
|
"format": {
|
|
"type": "text"
|
|
}
|
|
},
|
|
"tool_choice": "auto",
|
|
"tools": [],
|
|
"top_p": 0.9,
|
|
"truncation": "disabled",
|
|
"usage": {
|
|
"input_tokens": 120,
|
|
"input_tokens_details": {
|
|
"cached_tokens": 64
|
|
},
|
|
"output_tokens": 40,
|
|
"output_tokens_details": {
|
|
"reasoning_tokens": 10
|
|
},
|
|
"total_tokens": 160
|
|
},
|
|
"user": null,
|
|
"metadata": {
|
|
"k": "v"
|
|
},
|
|
"completed_at": 1700000007
|
|
},
|
|
"frames": "event: response.created\ndata: {\"response\":{\"id\":\"resp_golden_1\",\"object\":\"response\",\"created_at\":1700000000,\"status\":\"in_progress\",\"error\":null,\"incomplete_details\":null,\"instructions\":\"sys\",\"max_output_tokens\":99,\"model\":\"strata-local\",\"output\":[],\"parallel_tool_calls\":false,\"previous_response_id\":\"resp_prev\",\"reasoning\":{\"effort\":null,\"summary\":null},\"store\":false,\"temperature\":0.5,\"text\":{\"format\":{\"type\":\"text\"}},\"tool_choice\":\"auto\",\"tools\":[],\"top_p\":0.9,\"truncation\":\"disabled\",\"usage\":null,\"user\":null,\"metadata\":{\"k\":\"v\"}},\"type\":\"response.created\",\"sequence_number\":0}\n\nevent: response.in_progress\ndata: {\"response\":{\"id\":\"resp_golden_1\",\"object\":\"response\",\"created_at\":1700000000,\"status\":\"in_progress\",\"error\":null,\"incomplete_details\":null,\"instructions\":\"sys\",\"max_output_tokens\":99,\"model\":\"strata-local\",\"output\":[],\"parallel_tool_calls\":false,\"previous_response_id\":\"resp_prev\",\"reasoning\":{\"effort\":null,\"summary\":null},\"store\":false,\"temperature\":0.5,\"text\":{\"format\":{\"type\":\"text\"}},\"tool_choice\":\"auto\",\"tools\":[],\"top_p\":0.9,\"truncation\":\"disabled\",\"usage\":null,\"user\":null,\"metadata\":{\"k\":\"v\"}},\"type\":\"response.in_progress\",\"sequence_number\":1}\n\nevent: response.output_item.added\ndata: {\"response_id\":\"resp_golden_1\",\"output_index\":0,\"item\":{\"id\":\"msg_golden_1_0\",\"type\":\"message\",\"status\":\"in_progress\",\"role\":\"assistant\",\"content\":[]},\"type\":\"response.output_item.added\",\"sequence_number\":2}\n\nevent: response.content_part.added\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"msg_golden_1_0\",\"output_index\":0,\"content_index\":0,\"part\":{\"type\":\"output_text\",\"text\":\"\",\"annotations\":[],\"logprobs\":[]},\"type\":\"response.content_part.added\",\"sequence_number\":3}\n\nevent: response.output_text.delta\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"msg_golden_1_0\",\"output_index\":0,\"content_index\":0,\"delta\":\"x\",\"logprobs\":[],\"type\":\"response.output_text.delta\",\"sequence_number\":4}\n\nevent: response.output_text.done\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"msg_golden_1_0\",\"output_index\":0,\"content_index\":0,\"text\":\"x\",\"logprobs\":[],\"type\":\"response.output_text.done\",\"sequence_number\":5}\n\nevent: response.content_part.done\ndata: {\"response_id\":\"resp_golden_1\",\"item_id\":\"msg_golden_1_0\",\"output_index\":0,\"content_index\":0,\"part\":{\"type\":\"output_text\",\"text\":\"x\",\"annotations\":[],\"logprobs\":[]},\"type\":\"response.content_part.done\",\"sequence_number\":6}\n\nevent: response.output_item.done\ndata: {\"response_id\":\"resp_golden_1\",\"output_index\":0,\"item\":{\"id\":\"msg_golden_1_0\",\"type\":\"message\",\"status\":\"completed\",\"role\":\"assistant\",\"content\":[{\"type\":\"output_text\",\"text\":\"x\",\"annotations\":[],\"logprobs\":[]}]},\"type\":\"response.output_item.done\",\"sequence_number\":7}\n\nevent: response.completed\ndata: {\"response\":{\"id\":\"resp_golden_1\",\"object\":\"response\",\"created_at\":1700000000,\"status\":\"completed\",\"error\":null,\"incomplete_details\":null,\"instructions\":\"sys\",\"max_output_tokens\":99,\"model\":\"strata-local\",\"output\":[{\"id\":\"msg_golden_1_0\",\"type\":\"message\",\"status\":\"completed\",\"role\":\"assistant\",\"content\":[{\"type\":\"output_text\",\"text\":\"x\",\"annotations\":[],\"logprobs\":[]}]}],\"parallel_tool_calls\":false,\"previous_response_id\":\"resp_prev\",\"reasoning\":{\"effort\":null,\"summary\":null},\"store\":false,\"temperature\":0.5,\"text\":{\"format\":{\"type\":\"text\"}},\"tool_choice\":\"auto\",\"tools\":[],\"top_p\":0.9,\"truncation\":\"disabled\",\"usage\":{\"input_tokens\":120,\"input_tokens_details\":{\"cached_tokens\":64},\"output_tokens\":40,\"output_tokens_details\":{\"reasoning_tokens\":10},\"total_tokens\":160},\"user\":null,\"metadata\":{\"k\":\"v\"},\"completed_at\":1700000007},\"type\":\"response.completed\",\"sequence_number\":8}\n\n"
|
|
}
|
|
}
|
|
],
|
|
"parse": [
|
|
{
|
|
"name": "no tools",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello"
|
|
},
|
|
"output": "plain answer",
|
|
"natural_stop": false,
|
|
"expected": {
|
|
"items": [
|
|
{
|
|
"type": "text",
|
|
"deltas": [
|
|
"plain answer"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "tool call",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"output": "Let me check.\n\n<tool_call>\n<function=lookup>\n<parameter=q>\nhello world\n</parameter>\n<parameter=n>\n3\n</parameter>\n</function>\n</tool_call>",
|
|
"natural_stop": false,
|
|
"expected": {
|
|
"items": [
|
|
{
|
|
"type": "text",
|
|
"deltas": [
|
|
"Let me check."
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"name": "lookup",
|
|
"call_id": "call_golden_1_1",
|
|
"argument_deltas": [
|
|
"{\"q\":\"hello world\",\"n\":3}"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "tool call natural",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"output": "Let me check.\n\n<tool_call>\n<function=lookup>\n<parameter=q>\nhello world\n</parameter>\n<parameter=n>\n3\n</parameter>\n</function>\n</tool_call>",
|
|
"natural_stop": true,
|
|
"expected": {
|
|
"items": [
|
|
{
|
|
"type": "text",
|
|
"deltas": [
|
|
"Let me check."
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"name": "lookup",
|
|
"call_id": "call_golden_1_1",
|
|
"argument_deltas": [
|
|
"{\"q\":\"hello world\",\"n\":3}"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "tool call drifted",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"output": "ok\n<tool_call>\n<function=lookup>\n<parameter=q>\nx\n</parameter>\n</function>",
|
|
"natural_stop": true,
|
|
"expected": {
|
|
"items": [
|
|
{
|
|
"type": "text",
|
|
"deltas": [
|
|
"ok"
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"name": "lookup",
|
|
"call_id": "call_golden_1_1",
|
|
"argument_deltas": [
|
|
"{\"q\":\"x\"}"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "two calls",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"output": "Let me check.\n\n<tool_call>\n<function=lookup>\n<parameter=q>\nhello world\n</parameter>\n<parameter=n>\n3\n</parameter>\n</function>\n</tool_call>\nLet me check.\n\n<tool_call>\n<function=lookup>\n<parameter=q>\nhello world\n</parameter>\n<parameter=n>\n3\n</parameter>\n</function>\n</tool_call>",
|
|
"natural_stop": true,
|
|
"expected": {
|
|
"items": [
|
|
{
|
|
"type": "text",
|
|
"deltas": [
|
|
"Let me check."
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"name": "lookup",
|
|
"call_id": "call_golden_1_1",
|
|
"argument_deltas": [
|
|
"{\"q\":\"hello world\",\"n\":3}"
|
|
]
|
|
},
|
|
{
|
|
"type": "text",
|
|
"deltas": [
|
|
"Let me check."
|
|
]
|
|
},
|
|
{
|
|
"type": "function_call",
|
|
"name": "lookup",
|
|
"call_id": "call_golden_1_3",
|
|
"argument_deltas": [
|
|
"{\"q\":\"hello world\",\"n\":3}"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "undeclared call",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"output": "<tool_call>\n<function=zzz>\n</function>\n</tool_call>",
|
|
"natural_stop": true,
|
|
"expected": {
|
|
"error": "undeclared function in tool call: zzz"
|
|
}
|
|
},
|
|
{
|
|
"name": "empty output",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"name": "lookup",
|
|
"description": "Find a thing",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "string"
|
|
},
|
|
"n": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"q"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"output": "",
|
|
"natural_stop": false,
|
|
"expected": {
|
|
"items": [
|
|
{
|
|
"type": "text",
|
|
"deltas": [
|
|
""
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "custom",
|
|
"request": {
|
|
"model": "strata-local",
|
|
"input": "hello",
|
|
"tools": [
|
|
{
|
|
"type": "custom",
|
|
"name": "run",
|
|
"description": "Run a shell command"
|
|
}
|
|
]
|
|
},
|
|
"output": "<tool_call>\n<function=run>\n<parameter=input>\nls -la\n</parameter>\n</function>\n</tool_call>",
|
|
"natural_stop": true,
|
|
"expected": {
|
|
"items": [
|
|
{
|
|
"type": "function_call",
|
|
"name": "run",
|
|
"call_id": "call_golden_1_0",
|
|
"argument_deltas": [
|
|
"{\"input\":\"ls -la\"}"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|