agentic

package
v1.0.0-beta.162 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package agentic provides the agentic E2E test scenario.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// NATS URL for publishing tasks
	NATSURL string `json:"nats_url"`

	// Metrics URL for checking completion
	MetricsURL string `json:"metrics_url"`

	// LLM endpoint URL (default: start mock server)
	LLMEndpointURL string `json:"llm_endpoint_url"`

	// Timeouts
	TaskTimeout     time.Duration `json:"task_timeout"`
	CompleteTimeout time.Duration `json:"complete_timeout"`

	// Expected results
	MinTrajectoryFacts int `json:"min_trajectory_facts"`
}

Config holds configuration for the agentic scenario.

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns default configuration.

type Scenario

type Scenario struct {
	// contains filtered or unexported fields
}

Scenario validates the agentic components (loop, model, tools) work together.

func NewScenario

func NewScenario(
	obs *client.ObservabilityClient,
	config *Config,
) *Scenario

NewScenario creates a new agentic scenario.

func (*Scenario) Description

func (s *Scenario) Description() string

Description returns the scenario description.

func (*Scenario) Execute

func (s *Scenario) Execute(ctx context.Context) (*scenarios.Result, error)

Execute runs the agentic scenario.

func (*Scenario) Name

func (s *Scenario) Name() string

Name returns the scenario name.

func (*Scenario) Setup

func (s *Scenario) Setup(ctx context.Context) error

Setup prepares the scenario environment.

func (*Scenario) Teardown

func (s *Scenario) Teardown(ctx context.Context) error

Teardown cleans up after the scenario.

Jump to

Keyboard shortcuts

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