agents

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package agents provides adapters for AI assistant agent definitions.

Supported tools:

  • Claude Code: agents/<name>.md (Markdown with YAML frontmatter)
  • AWS Kiro CLI: ~/.kiro/agents/<name>.json (JSON format)

Example usage:

package main

import (
    "github.com/agentplexus/assistantkit/agents"
)

func main() {
    // Create a new agent
    agent := agents.NewAgent("release-coordinator", "Orchestrates software releases")
    agent.SetModel("sonnet")
    agent.AddTools("Read", "Write", "Bash", "Glob", "Grep")
    agent.AddSkills("version-analysis", "commit-classification")
    agent.Instructions = "You are a release coordinator agent..."

    // Write to Claude format
    claudeAdapter, _ := agents.GetAdapter("claude")
    claudeAdapter.WriteFile(agent, "./agents/release-coordinator.md")

    // Write to Kiro format
    kiroAdapter, _ := agents.GetAdapter("kiro")
    kiroAdapter.WriteFile(agent, "~/.kiro/agents/release-coordinator.json")
}

Index

Constants

View Source
const (
	ModelHaiku  = core.ModelHaiku
	ModelSonnet = core.ModelSonnet
	ModelOpus   = core.ModelOpus
)

Re-export model constants

Variables

View Source
var (
	NewAgent             = core.NewAgent
	GetAdapter           = core.GetAdapter
	AdapterNames         = core.AdapterNames
	ReadCanonicalFile    = core.ReadCanonicalFile
	WriteCanonicalFile   = core.WriteCanonicalFile
	WriteCanonicalJSON   = core.WriteCanonicalJSON
	ReadCanonicalDir     = core.ReadCanonicalDir
	WriteAgentsToDir     = core.WriteAgentsToDir
	ParseMarkdownAgent   = core.ParseMarkdownAgent
	MarshalMarkdownAgent = core.MarshalMarkdownAgent
)

Re-export core functions

Functions

This section is empty.

Types

type Adapter

type Adapter = core.Adapter

Re-export core types for convenience

type Agent

type Agent = core.Agent

Re-export core types for convenience

type MarshalError

type MarshalError = core.MarshalError

Re-export error types

type Model added in v0.7.0

type Model = core.Model

Re-export core types for convenience

type ParseError

type ParseError = core.ParseError

Re-export error types

type ReadError

type ReadError = core.ReadError

Re-export error types

type WriteError

type WriteError = core.WriteError

Re-export error types

Directories

Path Synopsis
Package agentkit provides an adapter for generating agentkit local server configurations.
Package agentkit provides an adapter for generating agentkit local server configurations.
Package awsagentcore provides an adapter for generating AWS Bedrock AgentCore CDK deployments.
Package awsagentcore provides an adapter for generating AWS Bedrock AgentCore CDK deployments.
Package claude provides the Claude Code agent adapter.
Package claude provides the Claude Code agent adapter.
Package codex provides the OpenAI Codex CLI agent adapter.
Package codex provides the OpenAI Codex CLI agent adapter.
Package core provides the canonical agent definition types.
Package core provides the canonical agent definition types.
Package gemini provides the Gemini CLI agent adapter.
Package gemini provides the Gemini CLI agent adapter.
Package kiro provides the AWS Kiro CLI agent adapter.
Package kiro provides the AWS Kiro CLI agent adapter.

Jump to

Keyboard shortcuts

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