dotsagent.io
语言:简体中文
框架 · AWS

快速了解 Strands Agents

适用于 Python 和 TypeScript 的 AWS SDK。模型驱动循环,代理在你自己的进程中运行,无需 control plane。默认使用 Amazon Bedrock,并通过 Bedrock AgentCore Runtime 部署。

适用于: 在进程内运行、由模型驱动的代理,可便捷接入 Amazon Bedrock 和 AgentCore。

关键信息

维护者
AWS
语言
Python, TypeScript
许可证
Apache-2.0
最新版本
Python 1.57.1 / TypeScript 1.19.0 · 2026年9月25日
代码仓库
strands-agents/harness-sdk · 8,594 个 stars
托管选项
Amazon Bedrock AgentCore Runtime
采用无服务器架构,每个会话使用一个 microVM。

快速入门

安装软件包、设置凭据,然后运行官方文档中的最简 agent。这里使用的模型 ID 与文档一致,但你的账户可能尚未启用这些模型。

安装
pip install strands-agents

需要 AWS credentials with Bedrock model access (default provider)

Python
from strands import Agent

# Bedrock is the default, so no model object is needed.
agent = Agent()

agent("What is an agent harness, in one sentence?")

快速入门来源

功能

支持任意模型是默认使用 Bedrock;也支持 Anthropic、OpenAI、Gemini、Ollama 等
MCP 客户端是
MCP 服务器尚未确认
多 agent是
持久化运行尚未确认会话管理器会持久化状态;未记录持久化引擎
人工审批是支持中断,以及带信任模式的 HumanInTheLoop 处理器
追踪是默认跟踪 agent loop 中的每项决策
评测是独立的 Strands Evals SDK

近期更新

  • 代码仓库已合并到 strands-agents/harness-sdk;sdk-python 现在重定向到该仓库,sdk-typescript 已归档。
  • 新增 Strands harness(create_harness / createHarness)和 strands CLI。
  • TypeScript SDK 已进入 1.x 版本。

同一语言的替代方案

来源

  1. github.com/strands-agents/harness-sdk
  2. strandsagents.com/docs/user-guide/sdk/quickstart/python/
  3. strandsagents.com/docs/user-guide/sdk/quickstart/overview/
  4. strandsagents.com/docs/user-guide/concepts/interrupts/
  5. strandsagents.com/docs/user-guide/concepts/agents/interventions/human-in-the-loop/
  6. strandsagents.com/docs/user-guide/sdk/deploy/deploy_to_bedrock_agentcore/
  7. pypi.org/pypi/strands-agents/json
  8. registry.npmjs.org/@strands-agents%2fsdk

为 AI agent 开发者提供的独立参考资料。与此处提及的任何厂商均无关联。

© 2026 DotsAgent · 事实核查日期:2026年10月1日