Crate agents_aws

Source
Expand description

AWS integration helpers: wiring for Secrets Manager, DynamoDB, and CloudWatch. Concrete implementations will live behind feature flags, so the core remains lightweight when running outside AWS.

§Features

  • dynamodb: Enable DynamoDB checkpointer for state persistence
  • secrets: Enable AWS Secrets Manager integration
  • aws-sdk: Enable all AWS integrations

§Examples

§DynamoDB Checkpointer

use agents_aws::{DynamoDbCheckpointer, Checkpointer};
use agents_core::state::AgentStateSnapshot;

// Create a DynamoDB checkpointer
let checkpointer = DynamoDbCheckpointer::new("agent-checkpoints").await?;

// Save agent state
let state = AgentStateSnapshot::default();
checkpointer.save_state(&"thread-id".to_string(), &state).await?;

// Load agent state
let loaded = checkpointer.load_state(&"thread-id".to_string()).await?;

Re-exports§

pub use dynamodb_checkpointer::DynamoDbCheckpointer;
pub use dynamodb_checkpointer::DynamoDbCheckpointerBuilder;

Modules§

dynamodb_checkpointer
DynamoDB-backed checkpointer implementation for AWS deployments.

Structs§

UnimplementedSecretsProvider
Stub Secrets Manager provider; real implementation will sit behind the secrets feature.

Traits§

Checkpointer
Trait for persisting and retrieving agent state between conversation runs. This mirrors the LangGraph Checkpointer interface used in the Python implementation.
SecretsProvider
Placeholder trait for loading configuration secrets.

Type Aliases§

ThreadId
Unique identifier for a conversation thread/session.