Documentation
¶
Index ¶
Constants ¶
View Source
const ( AgentTypeLLM = "llm" AgentTypeSystem = "system" AgentTypeHuman = "human" AgentTypeService = "service" )
Agent type constants.
Variables ¶
This section is empty.
Functions ¶
func EnsureRegistered ¶
func EnsureRegistered(ctx context.Context, s store.Store, id, name, typ string, metadata json.RawMessage) (*store.Agent, error)
EnsureRegistered retrieves an existing agent or registers a new one. If the agent exists, it updates last_seen_at and returns the stored record. If not found, it registers the agent and returns the new record.
func ValidateAgent ¶
ValidateAgent checks required fields on an Agent.
func ValidateAgentType ¶
ValidateAgentType checks that typ is one of the valid agent types.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.