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

オープン
#1,256 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@sangkyoonnam がすでに取り組んでいます。

2026年10月16日 から。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java, python
領域
ai, api

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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!
主要言語
Java
スター
497
フォーク
193
平均マージ
2日 21時間
マージ済み PR(30日)
68

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/flink-agents のほかの issue

apache/flink-agents の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。