Documentation
¶
Overview ¶
Package schema contains a stateful schema-v2 for AgentLLM.
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.StateException
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 ¶
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.AgentBaseStatesDef
}
LLMAgentStatesDef contains all the states of the LLMAgent state machine. LLMAgent is like the base AgentLLM but includes predefined LLM prompts.
type ParamsCheckingOfferRefs ¶
type PromptCheckingOfferRefs ¶
type PromptCheckingOfferRefs = secai.Prompt[ParamsCheckingOfferRefs, ResultCheckingOfferRefs]
func NewPromptCheckingOfferRefs ¶
func NewPromptCheckingOfferRefs(agent secai.AgentAPI) *PromptCheckingOfferRefs
type ResultCheckingOfferRefs ¶
type ResultCheckingOfferRefs struct {
// The referenced index.
RefIndex int
}
type StepsStatesDef ¶
type StepsStatesDef struct {
}
Click to show internal directories.
Click to hide internal directories.