docs: Optimize Response data array object indentation for the /messages interface (#19922)

This commit is contained in:
yeyunwen 2025-05-20 10:23:48 +08:00 committed by GitHub
parent a18a6f50ab
commit 4e5789df89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 130 additions and 130 deletions

View File

@ -635,22 +635,22 @@ Chat applications support session persistence, allowing previous chat history to
### Response ### Response
- `data` (array[object]) Message list - `data` (array[object]) Message list
- `id` (string) Message ID - `id` (string) Message ID
- `conversation_id` (string) Conversation ID - `conversation_id` (string) Conversation ID
- `inputs` (object) User input parameters. - `inputs` (object) User input parameters.
- `query` (string) User input / question content. - `query` (string) User input / question content.
- `message_files` (array[object]) Message files - `message_files` (array[object]) Message files
- `id` (string) ID - `id` (string) ID
- `type` (string) File type, image for images - `type` (string) File type, image for images
- `url` (string) Preview image URL - `url` (string) Preview image URL
- `belongs_to` (string) belongs touser orassistant - `belongs_to` (string) belongs touser orassistant
- `answer` (string) Response message content - `answer` (string) Response message content
- `created_at` (timestamp) Creation timestamp, e.g., 1705395332 - `created_at` (timestamp) Creation timestamp, e.g., 1705395332
- `feedback` (object) Feedback information - `feedback` (object) Feedback information
- `rating` (string) Upvote as `like` / Downvote as `dislike` - `rating` (string) Upvote as `like` / Downvote as `dislike`
- `retriever_resources` (array[RetrieverResource]) Citation and Attribution List - `retriever_resources` (array[RetrieverResource]) Citation and Attribution List
- `has_more` (bool) Whether there is a next page - `has_more` (bool) Whether there is a next page
- `limit` (int) Number of returned items, if input exceeds system limit, returns system limit amount - `limit` (int) Number of returned items, if input exceeds system limit, returns system limit amount
</Col> </Col>
<Col sticky> <Col sticky>

View File

@ -636,22 +636,22 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
### 応答 ### 応答
- `data` (array[object]) メッセージリスト - `data` (array[object]) メッセージリスト
- `id` (string) メッセージID - `id` (string) メッセージID
- `conversation_id` (string) 会話ID - `conversation_id` (string) 会話ID
- `inputs` (object) ユーザー入力パラメータ。 - `inputs` (object) ユーザー入力パラメータ。
- `query` (string) ユーザー入力/質問内容。 - `query` (string) ユーザー入力/質問内容。
- `message_files` (array[object]) メッセージファイル - `message_files` (array[object]) メッセージファイル
- `id` (string) ID - `id` (string) ID
- `type` (string) ファイルタイプ、画像の場合はimage - `type` (string) ファイルタイプ、画像の場合はimage
- `url` (string) プレビュー画像URL - `url` (string) プレビュー画像URL
- `belongs_to` (string) 所属、userまたはassistant - `belongs_to` (string) 所属、userまたはassistant
- `answer` (string) 応答メッセージ内容 - `answer` (string) 応答メッセージ内容
- `created_at` (timestamp) 作成タイムスタンプ、例1705395332 - `created_at` (timestamp) 作成タイムスタンプ、例1705395332
- `feedback` (object) フィードバック情報 - `feedback` (object) フィードバック情報
- `rating` (string) アップボートは`like` / ダウンボートは`dislike` - `rating` (string) アップボートは`like` / ダウンボートは`dislike`
- `retriever_resources` (array[RetrieverResource]) 引用と帰属リスト - `retriever_resources` (array[RetrieverResource]) 引用と帰属リスト
- `has_more` (bool) 次のページがあるかどうか - `has_more` (bool) 次のページがあるかどうか
- `limit` (int) 返された項目数、入力がシステム制限を超える場合、システム制限数を返します - `limit` (int) 返された項目数、入力がシステム制限を超える場合、システム制限数を返します
</Col> </Col>
<Col sticky> <Col sticky>

View File

@ -643,22 +643,22 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
### Response ### Response
- `data` (array[object]) 消息列表 - `data` (array[object]) 消息列表
- `id` (string) 消息 ID - `id` (string) 消息 ID
- `conversation_id` (string) 会话 ID - `conversation_id` (string) 会话 ID
- `inputs` (object) 用户输入参数。 - `inputs` (object) 用户输入参数。
- `query` (string) 用户输入 / 提问内容。 - `query` (string) 用户输入 / 提问内容。
- `message_files` (array[object]) 消息文件 - `message_files` (array[object]) 消息文件
- `id` (string) ID - `id` (string) ID
- `type` (string) 文件类型image 图片 - `type` (string) 文件类型image 图片
- `url` (string) 预览图片地址 - `url` (string) 预览图片地址
- `belongs_to` (string) 文件归属方user 或 assistant - `belongs_to` (string) 文件归属方user 或 assistant
- `answer` (string) 回答消息内容 - `answer` (string) 回答消息内容
- `created_at` (timestamp) 创建时间 - `created_at` (timestamp) 创建时间
- `feedback` (object) 反馈信息 - `feedback` (object) 反馈信息
- `rating` (string) 点赞 like / 点踩 dislike - `rating` (string) 点赞 like / 点踩 dislike
- `retriever_resources` (array[RetrieverResource]) 引用和归属分段列表 - `retriever_resources` (array[RetrieverResource]) 引用和归属分段列表
- `has_more` (bool) 是否存在下一页 - `has_more` (bool) 是否存在下一页
- `limit` (int) 返回条数,若传入超过系统限制,返回系统限制数量 - `limit` (int) 返回条数,若传入超过系统限制,返回系统限制数量
</Col> </Col>
<Col sticky> <Col sticky>
### Request Example ### Request Example

View File

@ -598,33 +598,33 @@ Chat applications support session persistence, allowing previous chat history to
### Response ### Response
- `data` (array[object]) Message list - `data` (array[object]) Message list
- `id` (string) Message ID - `id` (string) Message ID
- `conversation_id` (string) Conversation ID - `conversation_id` (string) Conversation ID
- `inputs` (object) User input parameters. - `inputs` (object) User input parameters.
- `query` (string) User input / question content. - `query` (string) User input / question content.
- `message_files` (array[object]) Message files - `message_files` (array[object]) Message files
- `id` (string) ID - `id` (string) ID
- `type` (string) File type, image for images - `type` (string) File type, image for images
- `url` (string) Preview image URL - `url` (string) Preview image URL
- `belongs_to` (string) belongs touser or assistant - `belongs_to` (string) belongs touser or assistant
- `agent_thoughts` (array[object]) Agent thoughtEmpty if it's a Basic Assistant - `agent_thoughts` (array[object]) Agent thoughtEmpty if it's a Basic Assistant
- `id` (string) Agent thought ID, every iteration has a unique agent thought ID - `id` (string) Agent thought ID, every iteration has a unique agent thought ID
- `message_id` (string) Unique message ID - `message_id` (string) Unique message ID
- `position` (int) Position of current agent thought, each message may have multiple thoughts in order. - `position` (int) Position of current agent thought, each message may have multiple thoughts in order.
- `thought` (string) What LLM is thinking about - `thought` (string) What LLM is thinking about
- `observation` (string) Response from tool calls - `observation` (string) Response from tool calls
- `tool` (string) A list of tools represents which tools are calledsplit by ; - `tool` (string) A list of tools represents which tools are calledsplit by ;
- `tool_input` (string) Input of tools in JSON format. Like: `{"dalle3": {"prompt": "a cute cat"}}`. - `tool_input` (string) Input of tools in JSON format. Like: `{"dalle3": {"prompt": "a cute cat"}}`.
- `created_at` (int) Creation timestamp, e.g., 1705395332 - `created_at` (int) Creation timestamp, e.g., 1705395332
- `message_files` (array[string]) Refer to message_file event - `message_files` (array[string]) Refer to message_file event
- `file_id` (string) File ID - `file_id` (string) File ID
- `answer` (string) Response message content - `answer` (string) Response message content
- `created_at` (timestamp) Creation timestamp, e.g., 1705395332 - `created_at` (timestamp) Creation timestamp, e.g., 1705395332
- `feedback` (object) Feedback information - `feedback` (object) Feedback information
- `rating` (string) Upvote as `like` / Downvote as `dislike` - `rating` (string) Upvote as `like` / Downvote as `dislike`
- `retriever_resources` (array[RetrieverResource]) Citation and Attribution List - `retriever_resources` (array[RetrieverResource]) Citation and Attribution List
- `has_more` (bool) Whether there is a next page - `has_more` (bool) Whether there is a next page
- `limit` (int) Number of returned items, if input exceeds system limit, returns system limit amount - `limit` (int) Number of returned items, if input exceeds system limit, returns system limit amount
</Col> </Col>
<Col sticky> <Col sticky>

View File

@ -599,33 +599,33 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
### 応答 ### 応答
- `data` (array[object]) メッセージリスト - `data` (array[object]) メッセージリスト
- `id` (string) メッセージID - `id` (string) メッセージID
- `conversation_id` (string) 会話ID - `conversation_id` (string) 会話ID
- `inputs` (object) ユーザー入力パラメータ。 - `inputs` (object) ユーザー入力パラメータ。
- `query` (string) ユーザー入力/質問内容。 - `query` (string) ユーザー入力/質問内容。
- `message_files` (array[object]) メッセージファイル - `message_files` (array[object]) メッセージファイル
- `id` (string) ID - `id` (string) ID
- `type` (string) ファイルタイプ、画像の場合はimage - `type` (string) ファイルタイプ、画像の場合はimage
- `url` (string) プレビュー画像URL - `url` (string) プレビュー画像URL
- `belongs_to` (string) 所属、ユーザーまたはアシスタント - `belongs_to` (string) 所属、ユーザーまたはアシスタント
- `agent_thoughts` (array[object]) エージェントの思考(基本アシスタントの場合は空) - `agent_thoughts` (array[object]) エージェントの思考(基本アシスタントの場合は空)
- `id` (string) エージェント思考ID、各反復には一意のエージェント思考IDがあります - `id` (string) エージェント思考ID、各反復には一意のエージェント思考IDがあります
- `message_id` (string) 一意のメッセージID - `message_id` (string) 一意のメッセージID
- `position` (int) 現在のエージェント思考の位置、各メッセージには順番に複数の思考が含まれる場合があります。 - `position` (int) 現在のエージェント思考の位置、各メッセージには順番に複数の思考が含まれる場合があります。
- `thought` (string) LLMが考えていること - `thought` (string) LLMが考えていること
- `observation` (string) ツール呼び出しからの応答 - `observation` (string) ツール呼び出しからの応答
- `tool` (string) 呼び出されたツールのリスト、;で区切られます - `tool` (string) 呼び出されたツールのリスト、;で区切られます
- `tool_input` (string) ツールの入力、JSON形式。例`{"dalle3": {"prompt": "a cute cat"}}`。 - `tool_input` (string) ツールの入力、JSON形式。例`{"dalle3": {"prompt": "a cute cat"}}`。
- `created_at` (int) 作成タイムスタンプ、例1705395332 - `created_at` (int) 作成タイムスタンプ、例1705395332
- `message_files` (array[string]) message_fileイベントを参照 - `message_files` (array[string]) message_fileイベントを参照
- `file_id` (string) ファイルID - `file_id` (string) ファイルID
- `answer` (string) 応答メッセージ内容 - `answer` (string) 応答メッセージ内容
- `created_at` (timestamp) 作成タイムスタンプ、例1705395332 - `created_at` (timestamp) 作成タイムスタンプ、例1705395332
- `feedback` (object) フィードバック情報 - `feedback` (object) フィードバック情報
- `rating` (string) アップボートは`like` / ダウンボートは`dislike` - `rating` (string) アップボートは`like` / ダウンボートは`dislike`
- `retriever_resources` (array[RetrieverResource]) 引用と帰属リスト - `retriever_resources` (array[RetrieverResource]) 引用と帰属リスト
- `has_more` (bool) 次のページがあるかどうか - `has_more` (bool) 次のページがあるかどうか
- `limit` (int) 返されたアイテムの数、入力がシステム制限を超える場合、システム制限の数を返します - `limit` (int) 返されたアイテムの数、入力がシステム制限を超える場合、システム制限の数を返します
</Col> </Col>
<Col sticky> <Col sticky>

View File

@ -612,34 +612,34 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
### Response ### Response
- `data` (array[object]) 消息列表 - `data` (array[object]) 消息列表
- `id` (string) 消息 ID - `id` (string) 消息 ID
- `conversation_id` (string) 会话 ID - `conversation_id` (string) 会话 ID
- `inputs` (object) 用户输入参数。 - `inputs` (object) 用户输入参数。
- `query` (string) 用户输入 / 提问内容。 - `query` (string) 用户输入 / 提问内容。
- `message_files` (array[object]) 消息文件 - `message_files` (array[object]) 消息文件
- `id` (string) ID - `id` (string) ID
- `type` (string) 文件类型image 图片 - `type` (string) 文件类型image 图片
- `url` (string) 预览图片地址 - `url` (string) 预览图片地址
- `belongs_to` (string) 文件归属方user 或 assistant - `belongs_to` (string) 文件归属方user 或 assistant
- `agent_thoughts` (array[object]) Agent思考内容仅Agent模式下不为空 - `agent_thoughts` (array[object]) Agent思考内容仅Agent模式下不为空
- `id` (string) agent_thought ID每一轮Agent迭代都会有一个唯一的id - `id` (string) agent_thought ID每一轮Agent迭代都会有一个唯一的id
- `message_id` (string) 消息唯一ID - `message_id` (string) 消息唯一ID
- `position` (int) agent_thought在消息中的位置如第一轮迭代position为1 - `position` (int) agent_thought在消息中的位置如第一轮迭代position为1
- `thought` (string) agent的思考内容 - `thought` (string) agent的思考内容
- `observation` (string) 工具调用的返回结果 - `observation` (string) 工具调用的返回结果
- `tool` (string) 使用的工具列表,以 ; 分割多个工具 - `tool` (string) 使用的工具列表,以 ; 分割多个工具
- `tool_input` (string) 工具的输入JSON格式的字符串(object)。如:`{"dalle3": {"prompt": "a cute cat"}}` - `tool_input` (string) 工具的输入JSON格式的字符串(object)。如:`{"dalle3": {"prompt": "a cute cat"}}`
- `created_at` (int) 创建时间戳1705395332 - `created_at` (int) 创建时间戳1705395332
- `message_files` (array[string]) 当前agent_thought 关联的文件ID - `message_files` (array[string]) 当前agent_thought 关联的文件ID
- `file_id` (string) 文件ID - `file_id` (string) 文件ID
- `conversation_id` (string) 会话ID - `conversation_id` (string) 会话ID
- `answer` (string) 回答消息内容 - `answer` (string) 回答消息内容
- `created_at` (timestamp) 创建时间 - `created_at` (timestamp) 创建时间
- `feedback` (object) 反馈信息 - `feedback` (object) 反馈信息
- `rating` (string) 点赞 like / 点踩 dislike - `rating` (string) 点赞 like / 点踩 dislike
- `retriever_resources` (array[RetrieverResource]) 引用和归属分段列表 - `retriever_resources` (array[RetrieverResource]) 引用和归属分段列表
- `has_more` (bool) 是否存在下一页 - `has_more` (bool) 是否存在下一页
- `limit` (int) 返回条数,若传入超过系统限制,返回系统限制数量 - `limit` (int) 返回条数,若传入超过系统限制,返回系统限制数量
</Col> </Col>
<Col sticky> <Col sticky>
### Request Example ### Request Example