Documentation
¶
Index ¶
Constants ¶
View Source
const ( ContentTypeText = "text" ContentTypeB64JSON = string(openai.ImageGenerateParamsResponseFormatB64JSON) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBCred ¶
type DBCred struct { Host string `mapstructure:"host"` Port string `mapstructure:"port"` Username string `mapstructure:"username"` Password string `mapstructure:"password"` DBName string `mapstructure:"name"` }
type LLMConfig ¶
type Level ¶
type Level int
Level represents the "intelligence" level of the model. i.e. basic, regular, advanced for example, OpenAI: gpt-4o-mini, gpt-4o, gpt-o1
type Model ¶
func CreateModel ¶
CreateModel creates a model with the given configuration and optional level
func ImageModel ¶
type Result ¶
type Result struct { // The result value as a string Value string // The current agent instance State State // The agent name to transfer to for StateTransfer NextAgent string }
Result encapsulates the possible return values for an agent function.
type UserInput ¶
type UserInput struct { Agent string `json:"agent"` Subcommand string `json:"subcommand"` Message string `json:"message"` Content string `json:"content"` Template string `json:"template"` Files []string `json:"files"` Extra map[string]any `json:"extra"` }
func (*UserInput) FileContent ¶
Click to show internal directories.
Click to hide internal directories.