api

package
v0.0.0-...-b5da06d Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 Agent

type Agent = database.Agent

Agent represents an agent from the database

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 Feedback

type Feedback = database.Feedback

Feedback represents a feedback from the database

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 Message

type Message = database.Event

Message represents a message from the database

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

type NamespaceResponse struct {
	Name   string `json:"name"`
	Status string `json:"status"`
}

NamespaceResponse represents a namespace response

type Provider

type Provider struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

Provider represents a provider configuration

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 Session

type Session = database.Session

Session represents a session from the database

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

type SessionRunsResponse struct {
	Status bool `json:"status"`
	Data   any  `json:"data"`
}

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 Task

type Task = database.Task

Run represents a run from the database

type Tool

type Tool = database.Tool

Tool represents a tool from the database

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

Jump to

Keyboard shortcuts

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