Commit Graph

2 Commits

Author SHA1 Message Date
26c1301df8 feat: add OpenAI tool call support to message model and API client
- Extend Message model with optional tool_calls and tool_call_id fields for OpenAI compatibility
- Update add_assistant_message to accept and forward tool_calls parameter
- Refactor add_tool_result to store raw result string with tool_call_id instead of JSON wrapper
- Add _prepare_message_for_api helper to convert internal Message to OpenAI API format
- Fix ToolCall.function to allow None default for missing function definitions
- Adjust tool execution in PyrApp to access function name/arguments as dict keys
2025-08-21 09:29:20 +00:00
5d7178579a chore: scaffold pyr project with env template, gitignore, docker, and install script 2025-08-20 22:34:47 +00:00