chore: 初始化 eightbf-analysis-go(对齐 Java 会商作业服务)
Go 实现 /api/v1/analysis 契约、Demo/Live Worker、DeerFlow SSE;含设计文档与冒烟脚本。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
commit
0c45b86d67
29 files changed
+3789
No files matched your search
@@ -0,0 +1,18 @@
|
||||
package deerflow
|
||||
|
||||
// StreamResult 一次 run/stream 汇总(与 Java StreamResult 对齐)。
|
||||
type StreamResult struct {
|
||||
Content string
|
||||
AgentName string
|
||||
Dispatched [][2]string // [agentId, task]
|
||||
Clarification bool
|
||||
ClarificationDetail string
|
||||
InvalidDelivery bool
|
||||
Aborted bool
|
||||
}
|
||||
|
||||
// TextDeltaHandler 流式正文增量(可含 <think>)。
|
||||
type TextDeltaHandler func(delta string) error
|
||||
|
||||
// CancelCheck 读 SSE 前询问是否已取消。
|
||||
type CancelCheck func() bool
|
||||
Reference in new issue
Block a user