aafre / aafre/artisan-engine

Implement the Core Orchestration Logic

Open
#12 0 comments 0 reactions 0 assignees View on GitHub
backend enhancement high-priority
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.