aafre / aafre/artisan-engine

Implement the Core Orchestration Logic

Aperta
#12 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
backend enhancement high-priority
Lingua principale
Python
Stelle
0
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

The work is in the `/v1/chat/completions` endpoint. Start by locating the endpoint handler in the codebase. Understand the existing request flow and the adapter interface for passing tools. The model's response must be inspected to detect a function call request. The finish_reason must be set to 'tool_calls' and the message must contain the tool_calls list. Look for existing tests for the chat completions endpoint to understand the expected response format.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
api, backend
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.