SPB Git forge

spb/doc-api

Public
2commits 1branches 0releases
15.7 MBsize
maindefault branch
13 days agolast push
Python 88.3% TypeScript 7.6% Shell 4.1%
10.7 KB · 56 lines json
Raw Blame History
1{2  "$fragment": "examples-openai-tools",3  "provider": "openai",4  "area": "tools",5  "verified_at": "2026-09-18",6  "runners": {7    "sh": "bash <file>  (uses scripts/lib.sh: oai/log_request; multipart uploads use direct curl because oai() forces application/json)",8    "py": ".venv/bin/python <file>  (openai SDK 3.16.2 + scripts/live.py logging)",9    "ts": "node --env-file=.env --experimental-strip-types <file>  (openai node SDK; logs via examples/shared/tool-loop/log.ts)"10  },11  "records": [12    {"provider": "openai", "area": "tools/function-calling", "file": "examples/openai/tools/function-calling/function_calling.sh", "language": "bash", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": "gpt-5.4-nano; forced function_call + function_call_output round trip"},13    {"provider": "openai", "area": "tools/function-calling", "file": "examples/openai/tools/function-calling/function_calling.py", "language": "python", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": "+ streaming: response.function_call_arguments.delta/done"},14    {"provider": "openai", "area": "tools/function-calling", "file": "examples/openai/tools/function-calling/function_calling.ts", "language": "typescript", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": "+ streaming"},15    {"provider": "openai", "area": "tools/custom-tools", "file": "examples/openai/tools/custom-tools/custom_tools.sh", "language": "bash", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": "regex grammar ^(yes|no)$ -> custom_tool_call.input='yes'"},16    {"provider": "openai", "area": "tools/custom-tools", "file": "examples/openai/tools/custom-tools/custom_tools.py", "language": "python", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": ""},17    {"provider": "openai", "area": "tools/custom-tools", "file": "examples/openai/tools/custom-tools/custom_tools.ts", "language": "typescript", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": ""},18    {"provider": "openai", "area": "tools/web-search", "file": "examples/openai/tools/web-search/web_search.sh", "language": "bash", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": "tool_choice {type:web_search} forced; sources [{type:'api',name:'oai-time'}]; $0.01/call"},19    {"provider": "openai", "area": "tools/web-search", "file": "examples/openai/tools/web-search/web_search.py", "language": "python", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": "SDK emits pydantic serialization warnings for source type 'api' (SDK types lag API)"},20    {"provider": "openai", "area": "tools/web-search", "file": "examples/openai/tools/web-search/web_search.ts", "language": "typescript", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": ""},21    {"provider": "openai", "area": "tools/file-search", "file": "examples/openai/tools/file-search/file_search.sh", "language": "bash", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": "vector store atlas-tools-agent created+deleted; results score 0.81"},22    {"provider": "openai", "area": "tools/file-search", "file": "examples/openai/tools/file-search/file_search.py", "language": "python", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": ""},23    {"provider": "openai", "area": "tools/file-search", "file": "examples/openai/tools/file-search/file_search.ts", "language": "typescript", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": ""},24    {"provider": "openai", "area": "tools/code-interpreter", "file": "examples/openai/tools/code-interpreter/code_interpreter.sh", "language": "bash", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": "tool_choice {type:code_interpreter} needed (model otherwise answers '4' without code); container GET/files/DELETE; $0.03/session"},25    {"provider": "openai", "area": "tools/code-interpreter", "file": "examples/openai/tools/code-interpreter/code_interpreter.py", "language": "python", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": "first run without tool_choice: model skipped the tool (StopIteration) -> fixed"},26    {"provider": "openai", "area": "tools/code-interpreter", "file": "examples/openai/tools/code-interpreter/code_interpreter.ts", "language": "typescript", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": ""},27    {"provider": "openai", "area": "tools/mcp-and-connectors", "file": "examples/openai/tools/mcp-and-connectors/mcp_and_connectors.sh", "language": "bash", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": "DeepWiki https://mcp.deepwiki.com/mcp; mcp_list_tools + mcp_call"},28    {"provider": "openai", "area": "tools/mcp-and-connectors", "file": "examples/openai/tools/mcp-and-connectors/mcp_and_connectors.py", "language": "python", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": "+ approval flow (mcp_approval_request -> mcp_approval_response approve=false)"},29    {"provider": "openai", "area": "tools/mcp-and-connectors", "file": "examples/openai/tools/mcp-and-connectors/mcp_and_connectors.ts", "language": "typescript", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": "+ approval flow"},30    {"provider": "openai", "area": "tools/shell", "file": "examples/openai/tools/shell/shell.sh", "language": "bash", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": "environment local; shell_call commands ['echo OK'] (nothing executed)"},31    {"provider": "openai", "area": "tools/shell", "file": "examples/openai/tools/shell/shell.py", "language": "python", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": ""},32    {"provider": "openai", "area": "tools/shell", "file": "examples/openai/tools/shell/shell.ts", "language": "typescript", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": ""},33    {"provider": "openai", "area": "tools/apply-patch", "file": "examples/openai/tools/apply-patch/apply_patch.sh", "language": "bash", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": "apply_patch_call create_file hello.txt '+OK\\n' (not applied)"},34    {"provider": "openai", "area": "tools/apply-patch", "file": "examples/openai/tools/apply-patch/apply_patch.py", "language": "python", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": ""},35    {"provider": "openai", "area": "tools/apply-patch", "file": "examples/openai/tools/apply-patch/apply_patch.ts", "language": "typescript", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": ""},36    {"provider": "openai", "area": "tools/skills", "file": "examples/openai/tools/skills/skills.sh", "language": "bash", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": "Skills CRUD 200; GET /skills list and GET versions returned empty lists (discrepancy)"},37    {"provider": "openai", "area": "tools/skills", "file": "examples/openai/tools/skills/skills.py", "language": "python", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": "raw HTTP via scripts/live.py"},38    {"provider": "openai", "area": "tools/skills", "file": "examples/openai/tools/skills/skills.ts", "language": "typescript", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": "client.skills.* SDK methods"},39    {"provider": "openai", "area": "tools/image-generation", "file": "examples/openai/tools/image-generation/image_generation.sh", "language": "bash", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": "error path only (400 image_generation_user_error); generation gated by RUN_IMAGE_TESTS (UNVERIFIED)"},40    {"provider": "openai", "area": "tools/image-generation", "file": "examples/openai/tools/image-generation/image_generation.py", "language": "python", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": "error path only"},41    {"provider": "openai", "area": "tools/image-generation", "file": "examples/openai/tools/image-generation/image_generation.ts", "language": "typescript", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": "error path only"},42    {"provider": "openai", "area": "tools/computer-use", "file": "examples/openai/tools/computer-use/computer_use.sh", "language": "bash", "status": "FAILED_VERIFICATION", "verified_at": "2026-09-18", "notes": "ACCOUNT_RESTRICTED: 404 model_not_found for computer-use-preview"},43    {"provider": "openai", "area": "tools/computer-use", "file": "examples/openai/tools/computer-use/computer_use.py", "language": "python", "status": "FAILED_VERIFICATION", "verified_at": "2026-09-18", "notes": "ACCOUNT_RESTRICTED (404)"},44    {"provider": "openai", "area": "tools/computer-use", "file": "examples/openai/tools/computer-use/computer_use.ts", "language": "typescript", "status": "FAILED_VERIFICATION", "verified_at": "2026-09-18", "notes": "ACCOUNT_RESTRICTED (404)"},45    {"provider": "openai", "area": "tools/tool-search", "file": "examples/openai/tools/tool-search/tool_search.sh", "language": "bash", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": "gpt-5.4-mini; tool_search_call + tool_search_output + namespaced function_call"},46    {"provider": "openai", "area": "tools/tool-search", "file": "examples/openai/tools/tool-search/tool_search.py", "language": "python", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": ""},47    {"provider": "openai", "area": "tools/tool-search", "file": "examples/openai/tools/tool-search/tool_search.ts", "language": "typescript", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": ""},48    {"provider": "openai", "area": "tools/deep-research", "file": "examples/openai/tools/deep-research/deep_research.sh", "language": "bash", "status": "UNVERIFIED", "verified_at": "2026-09-18", "notes": "prints request; sends only with RUN_EXPENSIVE_TESTS=true"},49    {"provider": "openai", "area": "tools/deep-research", "file": "examples/openai/tools/deep-research/deep_research.py", "language": "python", "status": "UNVERIFIED", "verified_at": "2026-09-18", "notes": "same"},50    {"provider": "openai", "area": "tools/deep-research", "file": "examples/openai/tools/deep-research/deep_research.ts", "language": "typescript", "status": "UNVERIFIED", "verified_at": "2026-09-18", "notes": "same"},51    {"provider": "openai", "area": "shared/tool-loop", "file": "examples/shared/tool-loop/openai_tool_loop.py", "language": "python", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": "generic loop: function/custom/mcp approval/shell local/apply_patch handlers; 2 turns"},52    {"provider": "openai", "area": "shared/tool-loop", "file": "examples/shared/tool-loop/openai_tool_loop.ts", "language": "typescript", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": "same loop in TS"},53    {"provider": "openai", "area": "tests", "file": "tests/openai/test_tools.py", "language": "python", "status": "LIVE_VERIFIED", "verified_at": "2026-09-18", "notes": "7 cheap tests passed, 5 expensive skipped (RUN_EXPENSIVE_TESTS)"}54  ]55}56