mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-21 20:07:31 +08:00
streaming: implement provider→agent→telegram token streaming pipeline
This commit is contained in:
@@ -50,6 +50,11 @@ type LLMProvider interface {
|
||||
GetDefaultModel() string
|
||||
}
|
||||
|
||||
// StreamingLLMProvider is an optional capability interface for token-level streaming.
|
||||
type StreamingLLMProvider interface {
|
||||
ChatStream(ctx context.Context, messages []Message, tools []ToolDefinition, model string, options map[string]interface{}, onDelta func(string)) (*LLMResponse, error)
|
||||
}
|
||||
|
||||
// ResponsesCompactor is an optional capability interface.
|
||||
// Providers that support OpenAI /v1/responses/compact can implement this.
|
||||
type ResponsesCompactor interface {
|
||||
|
||||
Reference in New Issue
Block a user