0xPlaygrounds / 0xPlaygrounds/rig

feat: add `ToolDefinition#output_schema`

Abierto
#1,613 2 comentarios 0 reacciones 0 asignados Ver en GitHub
feat
Lenguaje dominante
Rust
Estrellas
8.6k
Forks
959
Merge medio
4 h 32 min
PR fusionados (30 d)
117

Descripción

- [x] I have looked for existing issues (including closed) about this

## Feature Request

In `ToolDefinition` it would be nice to define a output JSON schema as well, such that LLM can understand the values returned from the tool

### Motivation

Have the LLM better understand the output returned from a tool

### Proposal

I think this should work for OpenAI, Gemini at least

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Look for the ToolDefinition struct in the codebase, likely in a core module. Understand how input_schema is defined and used. The change involves adding an output_schema field and ensuring it's integrated with LLM providers like OpenAI and Gemini. Check existing tool usage and tests to see how output is currently handled.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
rust
Área
ai-infra-agents
Tipo de issue
Nueva funcionalidad
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
55/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.