每个方法列出请求体字段与响应体字段(名称/类型/含义)。类型基于 JVM 签名 + 启发式映射。
请求 CreateChatV2Request
| 字段 | 类型 | 含义 |
|---|---|---|
| momentId | string | 动态ID |
| chatType | message(ChatType?) | chatType |
| chatTypeSubKey | string | chatTypeSubKey |
| askKimiQuestion | string | askKimiQuestion |
响应 CreateChatV2Response
| 字段 | 类型 | 含义 |
|---|---|---|
| chatId | int32 | 会话ID |
| _chat | Chat | chat |
| chatType | message(ChatType?) | chatType |
| chatTypeSubKey | message(ChatTypeSubKey?) | chatTypeSubKey |
请求 GetLastChatV2Request
| 字段 | 类型 | 含义 |
|---|---|---|
| momentId | string | 动态ID |
| chatType | message(ChatType?) | chatType |
| chatTypeSubKey | int32 | chatTypeSubKey |
响应 GetLastChatV2Response
| 字段 | 类型 | 含义 |
|---|---|---|
| chatId | int32 | 会话ID |
| chatType | string | chatType |
| chatTypeSubKey | message(ChatTypeSubKey?) | chatTypeSubKey |
流式方法:响应为按行分隔的 JSON 事件流(含 heartbeat/done/chunk 等事件,用 eventOffset 续传),不能按普通 unary 调用。
请求 ReChatRequest momentId int32
响应 ReChatResponse chatId int32, _chat Chat, chatType, chatTypeSubKey
请求 momentId int32, mentions string, links string
响应 _comment Comment
请求 commentId string 响应无字段
请求 momentId int32, _rootCommentId string, _pinnedCommentId string
响应 nextPageToken string, _pageStat PageStat, isLastPage bool, _pinnedCommentId string, comments repeated
请求 text string, visibility string, _artifactShareId string, images repeated, mentions repeated, links repeated, hashtagIds int32
响应 _moment Moment
请求 momentId string 响应无字段
请求 chatShareId string 响应 _chatShareCard ChatShareCard
请求 chatIds repeated 响应 chatIds int32
流式方法:响应为按行分隔的 JSON 事件流(含 heartbeat/done/chunk 等事件,用 eventOffset 续传)
请求 ChatRequest chatId int32, _message ChatMessage, _options string, _projectId string, tools string
响应 ChatResponse op, _mask, eventOffset int32, _chat Chat, _message ChatMessage, _block Block, _ref ChatFileRef, _usage Usage, _notification Notification, _done Done, _heartbeat Heartbeat, _tts, _interaction, _interactionAck
请求 _projectId int32, _withMessageContent string, _includePinned string, pageSize string, pageToken bool
响应 nextPageToken string, chats repeated, pinnedChats repeated
请求 chatId int32, _direction string, _startMessageId int32, _includeStartMessage string, _endMessageId message(EndMessageId?), _includeEndMessage string, _noMarkAsRead bool
响应 nextPageToken string
请求 chatId int32, _message Message, _scenario string, _options string, tools string