ia

package
v1.0.21 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	EVENT_AGENT_SET      = "agent:set"
	EVENT_AGENT_DELETE   = "agent:delete"
	EVENT_AGENT_STATUS   = "agent:status"
	EVENT_AGENT_AWAITING = "agent:awaiting"
	EVENT_AGENT_RESULTS  = "agent:results"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	ID      string `json:"id"`
	Tag     string `json:"tag"`
	Context string `json:"context"`
	Model   string `json:"model"`
	// contains filtered or unexported fields
}

func (*Agent) Save

func (s *Agent) Save() error

* * Save * @return error *

func (*Agent) Serialize

func (s *Agent) Serialize() ([]byte, error)

* * Serialize * @return ([]byte, error) *

func (*Agent) ToJson

func (s *Agent) ToJson() et.Json

* * ToJson * @return et.Json *

func (*Agent) ToString

func (s *Agent) ToString() string

* * ToString * @return string *

func (*Agent) Up

func (s *Agent) Up()

* * Up *

type Agents

type Agents struct {
	// contains filtered or unexported fields
}

func New

func New(store instances.Store) *Agents

func (*Agents) Ask

func (s *Agents) Ask(agent, convID, prompt string) (string, string, error)

* * Ask - Pregunta al agente * @param tag string, convID string, prompt string * @return (string, error) *

func (*Agents) Count

func (s *Agents) Count() int

* * Count * @return int *

func (*Agents) Get

func (s *Agents) Get(tag string) (*Agent, bool)

* * Get * @param tag string * @return *Agent, bool *

func (*Agents) HttpGet

func (s *Agents) HttpGet(w http.ResponseWriter, r *http.Request)

* * HttpGet * @params w http.ResponseWriter, r *http.Request *

func (*Agents) HttpQuery

func (s *Agents) HttpQuery(w http.ResponseWriter, r *http.Request)

* * HttpQuery * @params w http.ResponseWriter, r *http.Request *

func (*Agents) HttpSetParams

func (s *Agents) HttpSetParams(w http.ResponseWriter, r *http.Request)

* * HttpSetParams * @params w http.ResponseWriter, r *http.Request *

func (*Agents) Load

func (s *Agents) Load(agents []string) error

* * Load - Carga los agentes * @param agents []string * @return error *

func (*Agents) Remove

func (s *Agents) Remove(instance *Agent)

* * Remove * @param instance *Agent *

func (*Agents) SetContext

func (s *Agents) SetContext(tag, context string) error

* * SetContext - Establece el contexto del agente * @param tag string, context string * @return error *

func (*Agents) SetModel

func (s *Agents) SetModel(tag, model string) error

* * SetModel - Establece el modelo del agente * @param tag string, model string * @return error *

Jump to

Keyboard shortcuts

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