agentkit

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: MIT Imports: 6 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteFullConfig

func WriteFullConfig(agents []*core.Agent, path string) error

WriteFullConfig writes a complete agentkit configuration file.

Types

type Adapter

type Adapter struct{}

Adapter converts canonical Agent definitions to agentkit local config format.

func (*Adapter) DefaultDir

func (a *Adapter) DefaultDir() string

DefaultDir returns the default directory name for agentkit configs.

func (*Adapter) FileExtension

func (a *Adapter) FileExtension() string

FileExtension returns the file extension for agentkit config files.

func (*Adapter) Marshal

func (a *Adapter) Marshal(agent *core.Agent) ([]byte, error)

Marshal converts canonical Agent to agentkit config bytes.

func (*Adapter) Name

func (a *Adapter) Name() string

Name returns the adapter identifier.

func (*Adapter) Parse

func (a *Adapter) Parse(data []byte) (*core.Agent, error)

Parse converts agentkit config bytes to canonical Agent.

func (*Adapter) ReadFile

func (a *Adapter) ReadFile(path string) (*core.Agent, error)

ReadFile reads from path and returns canonical Agent.

func (*Adapter) WriteFile

func (a *Adapter) WriteFile(agent *core.Agent, path string) error

WriteFile writes canonical Agent to path.

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

func GenerateFullConfig(agents []*core.Agent) *Config

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.

type MCPConfig

type MCPConfig struct {
	Enabled       bool   `json:"enabled"`
	Transport     string `json:"transport"`
	Port          int    `json:"port,omitempty"`
	ServerName    string `json:"server_name,omitempty"`
	ServerVersion string `json:"server_version,omitempty"`
}

MCPConfig configures the MCP server.

type TimeoutConfig

type TimeoutConfig struct {
	AgentInvoke   string `json:"agent_invoke"`
	ShellCommand  string `json:"shell_command"`
	FileRead      string `json:"file_read"`
	ParallelTotal string `json:"parallel_total"`
}

TimeoutConfig defines operation timeouts.

Jump to

Keyboard shortcuts

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