adk

package
v0.0.0-...-6e46a00 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

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

func (AgentConfig) Value

func (a AgentConfig) Value() (driver.Value, error)

type Anthropic

type Anthropic struct {
	BaseModel
	BaseUrl string `json:"base_url"`
}

func (*Anthropic) GetType

func (a *Anthropic) GetType() string

func (*Anthropic) MarshalJSON

func (a *Anthropic) MarshalJSON() ([]byte, error)

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"`
}

type Gemini

type Gemini struct {
	BaseModel
}

func (*Gemini) GetType

func (g *Gemini) GetType() string

func (*Gemini) MarshalJSON

func (g *Gemini) 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 Model

type Model interface {
	GetType() string
}

func ParseModel

func ParseModel(bytes []byte) (Model, error)

type Ollama

type Ollama struct {
	BaseModel
}

func (*Ollama) GetType

func (o *Ollama) GetType() string

func (*Ollama) MarshalJSON

func (o *Ollama) MarshalJSON() ([]byte, error)

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) GetType

func (o *OpenAI) GetType() string

func (*OpenAI) MarshalJSON

func (o *OpenAI) MarshalJSON() ([]byte, error)

type RemoteAgentConfig

type RemoteAgentConfig struct {
	Name        string            `json:"name"`
	Url         string            `json:"url"`
	Headers     map[string]string `json:"headers,omitempty"`
	Description string            `json:"description,omitempty"`
}

type SseConnectionParams

type SseConnectionParams struct {
	Url            string            `json:"url"`
	Headers        map[string]string `json:"headers"`
	Timeout        *float64          `json:"timeout,omitempty"`
	SseReadTimeout *float64          `json:"sse_read_timeout,omitempty"`
}

type SseMcpServerConfig

type SseMcpServerConfig struct {
	Params SseConnectionParams `json:"params"`
	Tools  []string            `json:"tools"`
}

type StreamableHTTPConnectionParams

type StreamableHTTPConnectionParams struct {
	Url              string            `json:"url"`
	Headers          map[string]string `json:"headers"`
	Timeout          *float64          `json:"timeout,omitempty"`
	SseReadTimeout   *float64          `json:"sse_read_timeout,omitempty"`
	TerminateOnClose *bool             `json:"terminate_on_close,omitempty"`
}

Jump to

Keyboard shortcuts

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