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 ¶
- func GenerateCDKApp(teamName string, config *AgentCoreConfig) ([]byte, error)
- func GenerateCDKJSON(teamName string) ([]byte, error)
- func GeneratePackageJSON(teamName string) ([]byte, error)
- func GenerateStack(teamName string, agents []*core.Agent, config *AgentCoreConfig) ([]byte, error)
- func WriteCDKProject(teamName string, agents []*core.Agent, outputDir 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 AgentCoreConfig
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 ¶
GenerateCDKJSON creates the cdk.json configuration file.
func GeneratePackageJSON ¶
GeneratePackageJSON creates package.json for the CDK project.
func GenerateStack ¶
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 ¶
DefaultDir returns the default directory name for CDK output.
func (*Adapter) FileExtension ¶
FileExtension returns the file extension for CDK files.
func (*Adapter) Parse ¶
Parse is not typically used for CDK output (it's a generator, not a reader).
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.