Documentation
¶
Index ¶
Constants ¶
View Source
const ( ModelTypeOpenAI = "openai" ModelTypeAzureOpenAI = "azure_openai" ModelTypeAnthropic = "anthropic" ModelTypeGeminiVertexAI = "gemini_vertex_ai" ModelTypeGeminiAnthropic = "gemini_anthropic" ModelTypeOllama = "ollama" ModelTypeGemini = "gemini" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentConfig ¶
type AgentConfig struct { Model Model `json:"model"` Description string `json:"description"` Instruction string `json:"instruction"` HttpTools []HttpMcpServerConfig `json:"http_tools"` SseTools []SseMcpServerConfig `json:"sse_tools"` RemoteAgents []RemoteAgentConfig `json:"remote_agents"` }
func (*AgentConfig) Scan ¶
func (a *AgentConfig) Scan(value interface{}) error
func (*AgentConfig) UnmarshalJSON ¶
func (a *AgentConfig) UnmarshalJSON(data []byte) error
type Anthropic ¶
func (*Anthropic) MarshalJSON ¶
type AzureOpenAI ¶
type AzureOpenAI struct {
BaseModel
}
func (*AzureOpenAI) GetType ¶
func (a *AzureOpenAI) GetType() string
func (*AzureOpenAI) MarshalJSON ¶
func (a *AzureOpenAI) MarshalJSON() ([]byte, error)
type GeminiAnthropic ¶
type GeminiAnthropic struct {
BaseModel
}
func (*GeminiAnthropic) GetType ¶
func (g *GeminiAnthropic) GetType() string
func (*GeminiAnthropic) MarshalJSON ¶
func (g *GeminiAnthropic) MarshalJSON() ([]byte, error)
type GeminiVertexAI ¶
type GeminiVertexAI struct {
BaseModel
}
func (*GeminiVertexAI) GetType ¶
func (g *GeminiVertexAI) GetType() string
func (*GeminiVertexAI) MarshalJSON ¶
func (g *GeminiVertexAI) MarshalJSON() ([]byte, error)
type HttpMcpServerConfig ¶
type HttpMcpServerConfig struct { Params StreamableHTTPConnectionParams `json:"params"` Tools []string `json:"tools"` }
type OpenAI ¶
type OpenAI struct { BaseModel BaseUrl string `json:"base_url"` FrequencyPenalty *float64 `json:"frequency_penalty,omitempty"` MaxTokens *int `json:"max_tokens,omitempty"` N *int `json:"n,omitempty"` PresencePenalty *float64 `json:"presence_penalty,omitempty"` ReasoningEffort *string `json:"reasoning_effort,omitempty"` Seed *int `json:"seed,omitempty"` Temperature *float64 `json:"temperature,omitempty"` Timeout *int `json:"timeout,omitempty"` TopP *float64 `json:"top_p,omitempty"` }
func (*OpenAI) MarshalJSON ¶
type RemoteAgentConfig ¶
type SseConnectionParams ¶
type SseMcpServerConfig ¶
type SseMcpServerConfig struct { Params SseConnectionParams `json:"params"` Tools []string `json:"tools"` }
Click to show internal directories.
Click to hide internal directories.