opencode-cursor-agent/pkg/domain/entity/chunk.go

21 lines
333 B
Go

package entity
// ChunkType represents the type of stream chunk
type ChunkType int
const (
ChunkText ChunkType = iota
ChunkThinking
ChunkToolCall
ChunkDone
)
// StreamChunk represents a chunk in SSE streaming
type StreamChunk struct {
Type ChunkType
Text string
Thinking string
ToolCall *ToolCall
Done bool
}