[Feature] Render a flat RowTypeInfo output schema as JSON Schema

Abierto
#1,256 2 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 2 días

@sangkyoonnam ya está trabajando en esto.

Desde el 16/10/2026.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
java, python
Área
ai, api

Línea de trabajo

Start at BaseChatModelConnection.chat in the Java connections, where the Javadoc describes skipping a RowTypeInfo schema, and compare the Python path that takes a pydantic model. Trace where the prompt uses the type's toString() or str() form, since that is the part to replace with a JSON Schema object. Done means a flat RowTypeInfo renders as a schema with all fields required and additionalProperties false in both languages, and the guide and Javadoc match. Nested or non-basic types must keep today's behavior.

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

Descripción

feature priority/major
Search before asking
  • I searched in the issues and found nothing similar.
Description

@wenjin272 suggested this on #1129.

A RowTypeInfo output schema never gets native structured output today:

  • The native connections accept only a POJO class (Java) or a pydantic model (Python), so they skip a RowTypeInfo.
  • The prompt path describes the schema with the type's string form (toString() in Java, str() in Python), not JSON Schema.
  • The Java BaseChatModelConnection.chat Javadoc calls the skip a permanent fallback.

Proposal: render a flat RowTypeInfo (basic field types only) as a JSON Schema object, in both languages:

  • every field required
  • additionalProperties: false

Use it in two steps:

  1. In the prompt, in place of the string form.
  2. As the native schema, so AUTO and NATIVE work for a RowTypeInfo. The connections currently take a class, so this step needs them to accept a schema document as well.

A nested or non-basic RowTypeInfo keeps today's behavior. The guide and the Javadoc above are updated to match.

Are you willing to submit a PR?
  • I'm willing to submit a PR!
Lenguaje dominante
Java
Estrellas
497
Forks
193
Merge medio
2 d 21 h
PR fusionados (30 d)
68

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de apache/flink-agents

Todos los issues de apache/flink-agents

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.