Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel interface {
// Receive 获取接收用户消息的信道
Receive() <-chan UserMessage
// Send 发送消息
Send(ctx context.Context, meta any, notification *acp.SessionNotification, end bool) error
// Err 获取运行错误
Err() error
}
Channel 通道
type UserMessage ¶
type UserMessage struct {
Meta map[string]any
Prompt []acp.ContentBlock
}
UserMessage 用户消息
Click to show internal directories.
Click to hide internal directories.