testexecutor

package
v0.3.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestAgentExecutor

type TestAgentExecutor struct {
	Emitted   []a2a.Event
	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
}

func FromEventGenerator

func FromEventGenerator(generator func(reqCtx *a2asrv.RequestContext) []a2a.Event) *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) Execute

Jump to

Keyboard shortcuts

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