testutil

package
v0.1.6 Latest Latest
Warning

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

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

Documentation

Overview

Package testutil provides helpers for testing applications built on agentflow.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestFramework

func NewTestFramework(t *testing.T, scenarioFile string, extra ...agentflow.Option) *agentflow.Framework

NewTestFramework builds a Framework with development wiring for a scenario file.

Types

type NoopTool

type NoopTool struct{}

NoopTool is a tool executor that returns an empty successful result.

func (NoopTool) Execute

type StaticGateway

type StaticGateway struct {
	Content string
}

StaticGateway returns a fixed assistant message for every chat request.

func (StaticGateway) Chat

func (StaticGateway) Supports

func (g StaticGateway) Supports(string, llm.Capability) bool

type StructuredGateway

type StructuredGateway struct {
	Payload json.RawMessage
}

StructuredGateway returns a fixed structured payload for every structured chat request.

func (StructuredGateway) StructuredChat

func (StructuredGateway) Supports

Jump to

Keyboard shortcuts

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