Documentation
¶
Index ¶
- Constants
- type Agent
- type Agents
- func (s *Agents) Ask(agent, convID, prompt string) (string, string, error)
- func (s *Agents) Count() int
- func (s *Agents) Get(tag string) (*Agent, bool)
- func (s *Agents) HttpGet(w http.ResponseWriter, r *http.Request)
- func (s *Agents) HttpQuery(w http.ResponseWriter, r *http.Request)
- func (s *Agents) HttpSetParams(w http.ResponseWriter, r *http.Request)
- func (s *Agents) Load(agents []string) error
- func (s *Agents) Remove(instance *Agent)
- func (s *Agents) SetContext(tag, context string) error
- func (s *Agents) SetModel(tag, model string) error
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
}
type Agents ¶
type Agents struct {
// contains filtered or unexported fields
}
func (*Agents) Ask ¶
* * Ask - Pregunta al agente * @param tag string, convID string, prompt string * @return (string, error) *
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) SetContext ¶
* * SetContext - Establece el contexto del agente * @param tag string, context string * @return error *
Click to show internal directories.
Click to hide internal directories.