Documentation
¶
Overview ¶
Package agentkit provides an adapter for generating agentkit local server configurations. This enables local development with MCP server support, which serves as a stepping stone to AWS AgentCore deployment.
Index ¶
- func WriteFullConfig(agents []*core.Agent, path string) error
- type Adapter
- func (a *Adapter) DefaultDir() string
- func (a *Adapter) FileExtension() string
- func (a *Adapter) Marshal(agent *core.Agent) ([]byte, error)
- func (a *Adapter) Name() string
- func (a *Adapter) Parse(data []byte) (*core.Agent, error)
- func (a *Adapter) ReadFile(path string) (*core.Agent, error)
- func (a *Adapter) WriteFile(agent *core.Agent, path string) error
- type AgentConfig
- type Config
- type LLMConfig
- type MCPConfig
- type TimeoutConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Adapter ¶
type Adapter struct{}
Adapter converts canonical Agent definitions to agentkit local config format.
func (*Adapter) DefaultDir ¶
DefaultDir returns the default directory name for agentkit configs.
func (*Adapter) FileExtension ¶
FileExtension returns the file extension for agentkit config files.
type AgentConfig ¶
type AgentConfig struct {
Name string `json:"name"`
Description string `json:"description"`
Instructions string `json:"instructions"`
Tools []string `json:"tools"`
Model string `json:"model,omitempty"`
MaxTokens int `json:"max_tokens,omitempty"`
}
AgentConfig matches agentkit/platforms/local AgentConfig structure.
type Config ¶
type Config struct {
Mode string `json:"mode"`
Workspace string `json:"workspace"`
Agents []AgentConfig `json:"agents"`
MCP MCPConfig `json:"mcp"`
LLM LLMConfig `json:"llm"`
Timeouts TimeoutConfig `json:"timeouts"`
}
Config is the full agentkit local configuration.
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns a default agentkit configuration.
func GenerateFullConfig ¶
GenerateFullConfig creates a complete agentkit config from multiple agents.
type LLMConfig ¶
type LLMConfig struct {
Provider string `json:"provider"`
Model string `json:"model"`
APIKey string `json:"api_key,omitempty"`
BaseURL string `json:"base_url,omitempty"`
Temperature float64 `json:"temperature,omitempty"`
}
LLMConfig configures the language model.