Expand description
AWS service integration tools for mixtape agents.
This module provides a universal interface to AWS services, allowing agents to invoke any AWS API operation dynamically. It uses SigV4 signing for authentication and supports all AWS credential sources (environment variables, profiles, IAM roles, etc.).
§Example
use mixtape_core::Tool;
use mixtape_tools::aws::UseAwsTool;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let tool = UseAwsTool::new().await?;
// The tool is typically used through an agent, but can be called directly:
let input = serde_json::from_value(serde_json::json!({
"service_name": "sts",
"operation_name": "GetCallerIdentity",
"parameters": {},
"region": "us-east-1",
"label": "Get AWS caller identity"
}))?;
let result = tool.execute(input).await?;
println!("{}", result.as_text());
Ok(())
}Structs§
- UseAws
Input - Input parameters for the AWS service tool.
- UseAws
Tool - Tool for making AWS API calls using SigV4 signing.
- UseAws
Tool Builder - Builder for creating
UseAwsToolinstances with custom configuration.