story-kit: create 344_story_chatgpt_agent_backend_via_openai_api

This commit is contained in:
Dave
2026-03-20 09:16:10 +00:00
parent e99a3da336
commit 9622a1a572

View File

@@ -13,7 +13,8 @@ As a project owner, I want to run agents using ChatGPT (GPT-4o, o3, etc.) via th
- [ ] Implement OpenAiRuntime using the AgentRuntime trait from refactor 343 - [ ] Implement OpenAiRuntime using the AgentRuntime trait from refactor 343
- [ ] Supports GPT-4o and o3 models via the OpenAI chat completions API - [ ] Supports GPT-4o and o3 models via the OpenAI chat completions API
- [ ] Manages a conversation loop: send prompt + tool definitions, execute tool calls, continue until done - [ ] Manages a conversation loop: send prompt + tool definitions, execute tool calls, continue until done
- [ ] Tool definitions map to the same tools agents currently use (file read/write, bash, grep, etc.) - [ ] Agents connect to storkit's MCP server for all tool operations — no custom file/bash tools needed
- [ ] MCP tool definitions are converted to OpenAI function calling format
- [ ] Configurable in project.toml: runtime = 'openai', model = 'gpt-4o' - [ ] Configurable in project.toml: runtime = 'openai', model = 'gpt-4o'
- [ ] OPENAI_API_KEY passed via environment variable - [ ] OPENAI_API_KEY passed via environment variable
- [ ] Token usage tracked and logged to token_usage.jsonl - [ ] Token usage tracked and logged to token_usage.jsonl