awsagentcore

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package awsagentcore provides an adapter for generating AWS Bedrock AgentCore CDK deployments. This generates Infrastructure-as-Code for deploying multi-agent systems to AWS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCDKApp

func GenerateCDKApp(teamName string, config *AgentCoreConfig) ([]byte, error)

GenerateCDKApp creates the CDK app entry point.

func GenerateCDKJSON

func GenerateCDKJSON(teamName string) ([]byte, error)

GenerateCDKJSON creates the cdk.json configuration file.

func GeneratePackageJSON

func GeneratePackageJSON(teamName string) ([]byte, error)

GeneratePackageJSON creates package.json for the CDK project.

func GenerateStack

func GenerateStack(teamName string, agents []*core.Agent, config *AgentCoreConfig) ([]byte, error)

GenerateStack creates a full CDK stack with all agents.

func WriteCDKProject

func WriteCDKProject(teamName string, agents []*core.Agent, outputDir string, config *AgentCoreConfig) error

WriteCDKProject writes a complete CDK project structure.

Types

type Adapter

type Adapter struct{}

Adapter converts canonical Agent definitions to AWS AgentCore CDK format.

func (*Adapter) DefaultDir

func (a *Adapter) DefaultDir() string

DefaultDir returns the default directory name for CDK output.

func (*Adapter) FileExtension

func (a *Adapter) FileExtension() string

FileExtension returns the file extension for CDK files.

func (*Adapter) Marshal

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

Marshal converts canonical Agent to CDK construct 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 is not typically used for CDK output (it's a generator, not a reader).

func (*Adapter) ReadFile

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

ReadFile is not typically used for CDK output.

func (*Adapter) WriteFile

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

WriteFile writes canonical Agent as CDK construct to path.

type AgentCoreConfig

type AgentCoreConfig struct {
	Region          string `json:"region"`
	FoundationModel string `json:"foundation_model"`
	LambdaRuntime   string `json:"lambda_runtime"`
	StackName       string `json:"stack_name"`
}

AgentCoreConfig holds configuration for AgentCore deployment.

func DefaultAgentCoreConfig

func DefaultAgentCoreConfig() *AgentCoreConfig

DefaultAgentCoreConfig returns default configuration.

Jump to

Keyboard shortcuts

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