Documentation
¶
Index ¶
- func Done() provider.StreamEvent
- func DoneReason(reason string) provider.StreamEvent
- func Empty() provider.StreamEvent
- func Hang() provider.StreamEvent
- func Step(events ...provider.StreamEvent) []provider.StreamEvent
- func Text(text string) provider.StreamEvent
- func Tool(id, name, args string) provider.StreamEvent
- func Truncated(reason string) provider.StreamEvent
- func Usage(usage provider.Usage) provider.StreamEvent
- type ScriptedProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Done ¶
func Done() provider.StreamEvent
func DoneReason ¶
func DoneReason(reason string) provider.StreamEvent
func Empty ¶
func Empty() provider.StreamEvent
func Hang ¶
func Hang() provider.StreamEvent
func Step ¶
func Step(events ...provider.StreamEvent) []provider.StreamEvent
func Text ¶
func Text(text string) provider.StreamEvent
func Tool ¶
func Tool(id, name, args string) provider.StreamEvent
func Truncated ¶
func Truncated(reason string) provider.StreamEvent
Types ¶
type ScriptedProvider ¶
type ScriptedProvider struct {
Steps [][]provider.StreamEvent
Requests []provider.Request
Errs map[int]error
// contains filtered or unexported fields
}
func NewScriptedProvider ¶
func NewScriptedProvider(steps ...[]provider.StreamEvent) *ScriptedProvider
func (*ScriptedProvider) Stream ¶
func (p *ScriptedProvider) Stream(ctx context.Context, req provider.Request) (<-chan provider.StreamEvent, error)
Click to show internal directories.
Click to hide internal directories.