channels

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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 用户消息

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL