Documentation
¶
Index ¶
- type APIError
- type Agent
- type AgentResponse
- type CreateMemoryRequest
- type CreateModelConfigRequest
- type Feedback
- type MemoryResponse
- type Message
- type ModelConfigResponse
- type NamespaceResponse
- type Provider
- type ProviderInfo
- type RunRequest
- type Session
- type SessionRequest
- type SessionRunsData
- type SessionRunsResponse
- type StandardResponse
- type Task
- type Tool
- type ToolServerResponse
- type UpdateMemoryRequest
- type UpdateModelConfigRequest
- type VersionResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type APIError struct {
Error string `json:"error"`
}
APIError represents an error response from the API
type AgentResponse ¶
type AgentResponse struct {
ID string `json:"id"`
Agent *v1alpha2.Agent `json:"agent"`
// Config *adk.AgentConfig `json:"config"`
ModelProvider v1alpha2.ModelProvider `json:"modelProvider"`
Model string `json:"model"`
ModelConfigRef string `json:"modelConfigRef"`
MemoryRefs []string `json:"memoryRefs"`
Tools []*v1alpha2.Tool `json:"tools"`
DeploymentReady bool `json:"deploymentReady"`
Accepted bool `json:"accepted"`
}
type CreateMemoryRequest ¶
type CreateMemoryRequest struct {
Ref string `json:"ref"`
Provider Provider `json:"provider"`
APIKey string `json:"apiKey"`
PineconeParams *v1alpha1.PineconeConfig `json:"pinecone,omitempty"`
}
CreateMemoryRequest represents a request to create a memory
type CreateModelConfigRequest ¶
type CreateModelConfigRequest struct {
Ref string `json:"ref"`
Provider Provider `json:"provider"`
Model string `json:"model"`
APIKey string `json:"apiKey"`
OpenAIParams *v1alpha2.OpenAIConfig `json:"openAI,omitempty"`
AnthropicParams *v1alpha2.AnthropicConfig `json:"anthropic,omitempty"`
AzureParams *v1alpha2.AzureOpenAIConfig `json:"azureOpenAI,omitempty"`
OllamaParams *v1alpha2.OllamaConfig `json:"ollama,omitempty"`
GeminiParams *v1alpha2.GeminiConfig `json:"gemini,omitempty"`
GeminiVertexAIParams *v1alpha2.GeminiVertexAIConfig `json:"geminiVertexAI,omitempty"`
AnthropicVertexAIParams *v1alpha2.AnthropicVertexAIConfig `json:"anthropicVertexAI,omitempty"`
}
CreateModelConfigRequest represents a request to create a model configuration
type MemoryResponse ¶
type MemoryResponse struct {
Ref string `json:"ref"`
ProviderName string `json:"providerName"`
APIKeySecretRef string `json:"apiKeySecretRef"`
APIKeySecretKey string `json:"apiKeySecretKey"`
MemoryParams map[string]any `json:"memoryParams"`
}
MemoryResponse represents a memory response
type ModelConfigResponse ¶
type ModelConfigResponse struct {
Ref string `json:"ref"`
ProviderName string `json:"providerName"`
Model string `json:"model"`
APIKeySecret string `json:"apiKeySecret"`
APIKeySecretKey string `json:"apiKeySecretKey"`
ModelParams map[string]any `json:"modelParams"`
TLS *v1alpha2.TLSConfig `json:"tls,omitempty"`
}
ModelConfigResponse represents a model configuration response
type NamespaceResponse ¶
NamespaceResponse represents a namespace response
type ProviderInfo ¶
type ProviderInfo struct {
Name string `json:"name"`
Type string `json:"type"`
RequiredParams []string `json:"requiredParams"`
OptionalParams []string `json:"optionalParams"`
}
ProviderInfo represents information about a provider
type RunRequest ¶
type RunRequest struct {
Task string `json:"task"`
}
RunRequest represents a run creation request
type SessionRequest ¶
type SessionRequest struct {
AgentRef *string `json:"agent_ref,omitempty"`
Name *string `json:"name,omitempty"`
ID *string `json:"id,omitempty"`
}
SessionRequest represents a session creation/update request
type SessionRunsData ¶
type SessionRunsData struct {
Runs []any `json:"runs"`
}
SessionRunsData represents the data part of session runs response
type SessionRunsResponse ¶
SessionRunsResponse represents the response for session runs
type StandardResponse ¶
type StandardResponse[T any] struct { Error bool `json:"error"` Data T `json:"data,omitempty"` Message string `json:"message,omitempty"` }
StandardResponse represents the standard response format used by many endpoints
func NewResponse ¶
func NewResponse[T any](data T, message string, error bool) StandardResponse[T]
type ToolServerResponse ¶
type ToolServerResponse struct {
Ref string `json:"ref"`
GroupKind string `json:"groupKind"`
DiscoveredTools []*v1alpha2.MCPTool `json:"discoveredTools"`
}
ToolServerResponse represents a tool server response
type UpdateMemoryRequest ¶
type UpdateMemoryRequest struct {
PineconeParams *v1alpha1.PineconeConfig `json:"pinecone,omitempty"`
}
UpdateMemoryRequest represents a request to update a memory
type UpdateModelConfigRequest ¶
type UpdateModelConfigRequest struct {
Provider Provider `json:"provider"`
Model string `json:"model"`
APIKey *string `json:"apiKey,omitempty"`
OpenAIParams *v1alpha2.OpenAIConfig `json:"openAI,omitempty"`
AnthropicParams *v1alpha2.AnthropicConfig `json:"anthropic,omitempty"`
AzureParams *v1alpha2.AzureOpenAIConfig `json:"azureOpenAI,omitempty"`
OllamaParams *v1alpha2.OllamaConfig `json:"ollama,omitempty"`
GeminiParams *v1alpha2.GeminiConfig `json:"gemini,omitempty"`
GeminiVertexAIParams *v1alpha2.GeminiVertexAIConfig `json:"geminiVertexAI,omitempty"`
AnthropicVertexAIParams *v1alpha2.AnthropicVertexAIConfig `json:"anthropicVertexAI,omitempty"`
}
UpdateModelConfigRequest represents a request to update a model configuration
type VersionResponse ¶
type VersionResponse struct {
KAgentVersion string `json:"kagent_version"`
GitCommit string `json:"git_commit"`
BuildDate string `json:"build_date"`
}
Version represents the version information