Skip to content

Conversation

@mrh997
Copy link
Contributor

@mrh997 mrh997 commented Nov 4, 2025

What type of PR is this?

Check the PR title.

  • This PR title match the format: <type>(optional scope): <description>
  • The description of this PR title is user-oriented and clear enough for others to understand.
  • Attach the PR updating the user documentation if the current PR requires user awareness at the usage level. User docs repo

(Optional) Translate the PR title into Chinese.

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en:
zh(optional):

(Optional) Which issue(s) this PR fixes:

(optional) The PR that updates user documentation:

@mrh997 mrh997 force-pushed the feat/responses_model branch from 0788f09 to 19d3bb9 Compare November 4, 2025 13:39
@mrh997 mrh997 changed the title feat: define ResponsesModel component interface feat(responses): define ResponsesModel component interface Nov 4, 2025
@mrh997 mrh997 force-pushed the feat/responses_model branch 3 times, most recently from d9473db to ef740c2 Compare November 5, 2025 13:34
@mrh997 mrh997 force-pushed the feat/responses_model branch 7 times, most recently from 555d774 to 39698ce Compare November 17, 2025 05:18

type BlockReasoning struct {
// SummaryIndex is the index of the ReasoningSummary delta is associated with.
SummaryIndex *int
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个和 ContentBlock 中的 Index 和 State 重复了

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SummaryIndex 是给 Reasoning Block 中的 Summary array 用的,ContentBlock 是给 Block 用的

SummaryIndex *int

// Summary is the reasoning content summary.
Summary []*ReasoningSummary
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary 和 Content 的定位需要分清楚

Image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

content 是模型 cot 过程,会包含 developer instruction 信息。summary 是可以直接透出给终端用户的思考内容。
https://cookbook.openai.com/articles/gpt-oss/handle-raw-cot

}

type BaseGeneratedTextAnnotation interface {
AnnotationProvider() string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

咱们没有暴露过 Provider/Vendor 概念。这个需要改一下

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Base 和 Generated 应该都不需要了

接口就表达了是 Base

已经处在 GenText Block 了,不用再冗余表达 Generated 了

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prefer name: TextAnnotation

type BlockAssistantGenText struct {
Text string

Annotations []BaseGeneratedTextAnnotation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

既然把 Annotations 抽象成接口了,没必要在这里限定成数组了。

更详细定义的 GetTextURLCitation 接口的返回,决定是数组,还是 map

@mrh997 mrh997 force-pushed the feat/responses_model branch 2 times, most recently from 886c0bd to c8580de Compare November 19, 2025 10:50
// Index is used for streaming to identify the chunk of the block for merging.
Index *int
// Streaming event type of this block.
EventType *StreamEventType
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GPT 推荐:Stage *StreamStage

@mrh997 mrh997 force-pushed the feat/responses_model branch 13 times, most recently from 24eeda0 to 13259c3 Compare November 24, 2025 08:36
@mrh997 mrh997 force-pushed the feat/responses_model branch from 13259c3 to a01b5d5 Compare November 24, 2025 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants