schema

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// LLMAgentStates contains all the states for the LLMAgent machine.
	LLMAgentStates = ssL
	// LLMAgentGroups contains all the state groups for the LLMAgent machine.
	LLMAgentGroups = sgL
)
View Source
var Exception = am.Exception

Exception is a type alias for the exception state.

View Source
var LLMAgentSchema = SchemaMerge(

	ss.AgentSchema,

	am.Schema{
		ssL.CheckingOfferRefs: {
			Multi:   true,
			Require: S{ssL.Start},
		},
	})

LLMAgentSchema represents all relations and properties of LLMAgentStates.

View Source
var SAdd = am.SAdd

SAdd is a func alias for merging lists of states.

View Source
var SchemaMerge = am.SchemaMerge

SchemaMerge is a func alias for extending an existing state schema.

View Source
var Sp = shared.Sp
View Source
var StateAdd = am.StateAdd

StateAdd is a func alias for adding to an existing state definition.

View Source
var StateSet = am.StateSet

StateSet is a func alias for replacing parts of an existing state definition.

Functions

func NewLLMAgent

func NewLLMAgent(ctx context.Context) *am.Machine

NewLLMAgent will create the most basic LLMAgent state machine.

Types

type LLMAgentGroupsDef

type LLMAgentGroupsDef struct {
}

LLMAgentGroupsDef contains all the state groups LLMAgent state machine.

type LLMAgentStatesDef

type LLMAgentStatesDef struct {
	*am.StatesBase

	// Check if the passed prompt references any of the offered choices.
	CheckingOfferRefs string

	*ss.AgentStatesDef
}

LLMAgentStatesDef contains all the states of the LLMAgent state machine. LLMAgent is like the base Agent but includes predefined LLM prompts.

type ParamsCheckingOfferRefs

type ParamsCheckingOfferRefs struct {
	Choices []string
	Prompt  string
}

type ResultCheckingOfferRefs

type ResultCheckingOfferRefs struct {
	// The referenced index.
	RefIndex int
}

type S

type S = am.S

S is a type alias for a list of state names.

type State

type State = am.State

State is a type alias for a state definition. See am.State.

type StepsStatesDef

type StepsStatesDef struct {
}

Jump to

Keyboard shortcuts

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