hoodini/ai-agents-skills

aws-strands

Build AI agents with the Strands Agents SDK - the open-source framework (the agent "brain") for writing agent logic, tools, and multi-agent systems in Python.

소스 보기

사용 방법

  1. 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
  2. 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
  3. 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/hoodini/ai-agents-skills --skill aws-strands

시작 전 확인

  • 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
  • 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 Skill 문서

원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.

Strands Agents SDK

The open-source framework you write an agent's logic in - the "brain." Model-agnostic, AWS Bedrock by default. Runs anywhere (laptop, container, Lambda, EC2).

How this fits with the other AWS skill: Strands is the FRAMEWORK (what your agent does). To HOST and DEPLOY a Strands agent on AWS, use aws-harness (the AgentCore runtime). They compose: write with Strands, ship with AgentCore. You can also run Strands with no AWS deployment at all.

Install

bash
pip install strands-agents strands-agents-tools

(A TypeScript SDK also exists - see the docs. Examples below are Python.)

Quick Start

python
from strands import Agent

agent = Agent()                       # defaults to Bedrock, Claude 4 Sonnet
print(agent("What is the capital of France?"))

agent(...) returns an AgentResult. str(result) gives the text; result.message is the structured dict (role + content).

Model configuration

Bedrock is the default provider and no model argument is needed - Strands picks a region-appropriate Claude 4 Sonnet. To override, pass a model id string or a BedrockModel provider:

python
from strands import Agent
from strands.models import BedrockModel

# Simple: a Bedrock model id (copy the exact id from the Bedrock model catalog)
agent = Agent(model="<your-bedrock-model-id>")

# Full control:
agent = Agent(model=BedrockModel(
    model_id="<your-bedrock-model-id>",
    temperature=0.3,
    region_name="us-west-2",
))

Strands is model-agnostic - other providers (Anthropic direct, OpenAI, etc.) are available via their own provider classes; see the model-providers docs.

Custom tools

The @tool decorator turns a function into something the model can call. The docstring is read by the model (first paragraph = description, Args: = parameter docs):

python
from strands import Agent, tool

@tool
def word_count(text: str) -> str:
    """Count the number of words in a piece of text.

    Args:
        text: The text to analyze.
    """
    return f"{len(text.split())} words"

agent = Agent(tools=[word_count])

Return recoverable strings on failure ("Error: ... ask the user to rephrase") instead of raising - the model reads the return value and can recover.

Prebuilt tools

python
from strands_tools import calculator   # from the strands-agents-tools package
agent = Agent(tools=[calculator])

Multi-agent patterns

Three verified patterns. Start with agents-as-tools (simplest delegation): wrap an agent in a @tool.

python
from strands import Agent, tool

researcher = Agent(system_prompt="You research topics thoroughly.")

@tool
def research(query: str) -> str:
    """Delegate a research question to the research specialist."""
    return str(researcher(query))     # str(AgentResult) = the text output

coordinator = Agent(tools=[research])
coordinator("Research the history of espresso and summarize it.")

For structured orchestration, use Swarm (agents hand off to each other dynamically) or Graph (a deterministic DAG where one node's output feeds the next):

python
from strands.multiagent import Swarm, GraphBuilder

# Swarm - dynamic handoffs
swarm = Swarm([researcher, writer, editor])
swarm("Draft and polish an article about espresso.")

# Graph - deterministic pipeline
builder = GraphBuilder()
builder.add_node(researcher, "research")
builder.add_node(writer, "write")
builder.add_edge("research", "write")     # research output -> writer input
graph = builder.build()
graph("Write an article about espresso.")

See the multi-agent docs for the full Graph/Swarm API.

Conversation management (context window)

Strands manages the conversation window for you (this is NOT long-term memory). The default is a sliding window:

python
from strands import Agent
from strands.agent.conversation_manager import SlidingWindowConversationManager

agent = Agent(conversation_manager=SlidingWindowConversationManager(window_size=20))

For durable, cross-session memory, use AgentCore Memory (see aws-harness) or the memory tools in strands-agents-tools.

Streaming

python
async for event in agent.stream_async("Explain quantum computing"):
    print(event)

Deploy on AWS

Strands runs anywhere. To put a Strands agent on AWS as a serverless endpoint with managed memory, identity, and observability, use the AgentCore harness: [aws-harness](../aws-harness/SKILL.md).

Resources

  • Strands docs: https://strandsagents.com/
  • Python quickstart: https://strandsagents.com/docs/user-guide/quickstart/python/
  • Multi-agent patterns: https://strandsagents.com/docs/user-guide/concepts/multi-agent/multi-agent-patterns/
  • Model providers: https://strandsagents.com/docs/user-guide/concepts/model-providers/
  • GitHub: https://github.com/strands-agents/sdk-python

관련 작업

같은 저장소의 Skills

더 많은 Skills

모든 Skills
hoodini
커뮤니티

aws-account-management

Manage AWS accounts, organizations, IAM, and billing. Use when setting up AWS Organizations, managing IAM policies, controlling costs, or implementing multi-account strategies. Triggers on AWS Organizations, AWS IAM, AWS billing, Cost Explorer, SCPs, multi-account, AWS SSO, Identity Center.

설치 수
1
GitHub Stars
287
업데이트
7월 11일
hoodini
커뮤니티

aws-harness

Build a new AI agent on AWS and deploy it easily, OR wrap and deploy an agent you already have, using the Amazon Bedrock AgentCore harness. Explains what an "agent harness" is (the runtime scaffolding around a model - agent loop, tool execution, memory, identity, observability), then gives two fully-working, verified paths - (A) scaffold + ship a new agent with the AgentCore CLI (create/dev/deploy/invoke), and (B) deploy a prepared agent (Strands, LangGraph, or custom) via the SDK wrapper or a F

설치 수
1
GitHub Stars
287
업데이트
7월 11일
hoodini
커뮤니티

bun

Build fast applications with Bun JavaScript runtime. Use when creating Bun projects, using Bun APIs, bundling, testing, or optimizing Node.js alternatives. Triggers on Bun, Bun runtime, bun.sh, bunx, Bun serve, Bun test, JavaScript runtime.

설치 수
1
GitHub Stars
287
업데이트
7월 11일
hoodini
커뮤니티

cinematic-scrub-landing

Build a premium cinematic landing page with mouse-scrub video hero and brand-driven narrative-arc sections. Use whenever the user provides a hero video plus a product / subject / brand and wants a landing page, promo site, product showcase, marketing page, or storytelling site. Works for any language (RTL or LTR — Hebrew, English, Arabic, Spanish, French, Japanese, etc.) and any subject (food, tech, animals, fashion, services, SaaS, wildlife campaigns, music releases, books, real estate). The si

설치 수
1
GitHub Stars
287
업데이트
7월 11일