agent

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package agent defines agent types and configuration. The agent runtime loop is handled by the workflow engine's step.agent_execute pipeline step.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	ID          string       `json:"id"`
	Name        string       `json:"name"`
	Personality *Personality `json:"personality,omitempty"`
	Status      Status       `json:"status"`
	CurrentTask string       `json:"current_task,omitempty"`
	StartedAt   time.Time    `json:"started_at"`
	TeamID      string       `json:"team_id,omitempty"`
	IsLead      bool         `json:"is_lead"`
}

Info provides read-only metadata about an agent.

type Personality

type Personality struct {
	Name         string `json:"name" yaml:"name"`
	Role         string `json:"role" yaml:"role"`
	SystemPrompt string `json:"system_prompt" yaml:"system_prompt"`
	Model        string `json:"model,omitempty" yaml:"model"`
}

Personality defines the agent's behavior, tone, and role.

type Status

type Status string

Status represents the current state of an agent.

const (
	StatusIdle    Status = "idle"
	StatusActive  Status = "active"
	StatusWorking Status = "working"
	StatusStopped Status = "stopped"
	StatusError   Status = "error"
)

Jump to

Keyboard shortcuts

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