Documentation
¶
Index ¶
- type ChannelHandler
- func (h *ChannelHandler) HandleTool(ctx context.Context, call domain.ToolCall) (domain.ToolResult, error)
- func (h *ChannelHandler) Input(ctx context.Context) (string, error)
- func (h *ChannelHandler) Output(ctx context.Context, requests []domain.ActionRequest) (bool, error)
- func (h *ChannelHandler) Signal(ctx context.Context, name string, args map[string]any) error
- func (h *ChannelHandler) SystemOutput(ctx context.Context, msg string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelHandler ¶
type ChannelHandler struct {
InputCh chan string
}
ChannelHandler is a mock handler for testing
func (*ChannelHandler) HandleTool ¶
func (h *ChannelHandler) HandleTool(ctx context.Context, call domain.ToolCall) (domain.ToolResult, error)
func (*ChannelHandler) Output ¶
func (h *ChannelHandler) Output(ctx context.Context, requests []domain.ActionRequest) (bool, error)
func (*ChannelHandler) SystemOutput ¶
func (h *ChannelHandler) SystemOutput(ctx context.Context, msg string) error
Directories
¶
| Path | Synopsis |
|---|---|
|
fixtures
|
|
|
resilience/bad_citizen_ignore
command
|
|
|
resilience/bad_citizen_slow
command
|
|
|
resilience/crashy
command
|
|
|
resilience/good_citizen
command
|
Click to show internal directories.
Click to hide internal directories.