testexecutor

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWithControlChannels added in v0.3.11

func NewWithControlChannels() (*TestAgentExecutor, *ControlChannels)

Types

type ControlChannels added in v0.3.11

type ControlChannels struct {
	ReqCtx         <-chan *a2asrv.RequestContext
	ExecEvent      chan<- a2a.Event
	CancelCalled   <-chan struct{}
	ContinueCancel chan<- struct{}
}

type TestAgentExecutor

type TestAgentExecutor struct {
	ExecuteFn func(context.Context, *a2asrv.RequestContext, eventqueue.Queue) error
	CleanupFn func(context.Context, *a2asrv.RequestContext, a2a.SendMessageResult, error)
	CancelFn  func(context.Context, *a2asrv.RequestContext, eventqueue.Queue) error
	// contains filtered or unexported fields
}

func FromEventGenerator

func FromEventGenerator(generator func(reqCtx *a2asrv.RequestContext) []a2a.Event) *TestAgentExecutor

func NewCanceler added in v0.3.11

func NewCanceler() *TestAgentExecutor

func (*TestAgentExecutor) Cancel

func (*TestAgentExecutor) Cleanup added in v0.3.9

func (e *TestAgentExecutor) Cleanup(ctx context.Context, reqCtx *a2asrv.RequestContext, result a2a.SendMessageResult, err error)

func (*TestAgentExecutor) Emitted

func (e *TestAgentExecutor) Emitted() []a2a.Event

func (*TestAgentExecutor) Execute

Jump to

Keyboard shortcuts

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