aafre / aafre/artisan-engine

Update API Models for Tool Use

未关闭
#10 0 条评论 0 个 reaction 已指派 1 人 已被 @aafre 认领 在 GitHub 查看
api enhancement Python
主要语言
Python
星标
0
派生
1
PR 合并指标
30 天内没有已合并 PR

描述

Before we can implement the logic, we need to update our API contract in `artisan_engine/models.py` to support the necessary data structures for tools, as defined by the OpenAI API.

**Acceptance Criteria:**

- Create Pydantic models for Tool, Function, ToolCall, etc.
- Update `OpenAIChatRequest` to accept a tools: List[Tool] and a tool_choice parameter.
- Update `OpenAIMessage` to handle a `tool_calls: List[ToolCall]` attribute for assistant messages and a `tool_call_id` for tool messages.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。