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"`
ExecuteCode bool `json:"execute_code,omitempty"`
}
See `python/packages/kagent-adk/src/kagent/adk/types.py` for the python version of this
func (*AgentConfig) Scan ¶
func (a *AgentConfig) Scan(value any) 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 BaseModel ¶
type BaseModel struct {
Type string `json:"type"`
Model string `json:"model"`
Headers map[string]string `json:"headers,omitempty"`
// TLS/SSL configuration (applies to all model types)
TLSDisableVerify *bool `json:"tls_disable_verify,omitempty"`
TLSCACertPath *string `json:"tls_ca_cert_path,omitempty"`
TLSDisableSystemCAs *bool `json:"tls_disable_system_cas,omitempty"`
}
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.