Handle Tool Result Messages
- Lenguaje dominante
- Python
- Estrellas
- 0
- Forks
- 1
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
To complete the loop, the API must be able to accept the result of a tool call from the user and feed it back to the model to generate the final human-readable response.
**Acceptance Criteria:**
- The `/v1/chat/completions` endpoint can now accept a `messages` list that includes a message with `role: "tool"`.
- This tool message (containing the result from the function the user executed) is correctly formatted and added to the conversation history sent to the model.
- The model then uses this result to generate a final text answer, and the endpoint returns a standard response with `finish_reason: "stop"`.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.