Implement the Core Orchestration Logic
- Dominant language
- Python
- Stars
- 0
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
This is the heart of the feature. The `/v1/chat/completions` endpoint needs to be updated to handle the first half of the tool-use loop: receiving a request with tools, calling the model, and returning a `tool_calls` response if the model decides to use a tool.
**Acceptance Criteria:**
- If a request to `/v1/chat/completions` includes the `tools` parameter, the endpoint passes them to the adapter.
- The endpoint logic inspects the model's response.
- If the model's response contains a request to call a function, the API call finishes and returns an `OpenAIChatResponse`.
- This response object's `finish_reason` is `"tool_calls"`, and the `message` contains the `tool_calls` list with the function name and arguments.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.