identity

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 5 Imported by: 0

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

func ValidateAgent(agent *store.Agent) error

ValidateAgent checks required fields on an Agent.

func ValidateAgentType

func ValidateAgentType(typ string) error

ValidateAgentType checks that typ is one of the valid agent types.

Types

This section is empty.

Jump to

Keyboard shortcuts

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