Skip to main content

Multi-agent SDK with Bedrock, ReAct, parallel sub-agents

Project description

AgentSDK

A Python SDK for building multi-agent systems with Bedrock-backed LLMs, ReAct tool-use, and parallel sub-agent orchestration.

Install

pip install agentsdk

Quickstart

from agentsdk import (
  BedrockClient, SessionManager, ToolRegistry, Agent,
  OrchestratorAgent, load_sub_agents_from_dir,
  FileSystemTool, ShellTool, WebFetchTool,
)

bedrock = BedrockClient(model_id="openai.gpt-oss-120b-1:0", region_name="us-west-2")
sessions = SessionManager()
registry = ToolRegistry()
registry.register(FileSystemTool(root="."))
registry.register(ShellTool(root="."))
registry.register(WebFetchTool())

def on_thought(agent, kind, text):
    print(f"[{agent}][{kind}] {text[:160]}")

default = Agent(
  name="default", bedrock=bedrock, registry=registry,
  sessions=sessions, system_prompt="You are a helpful coding assistant.",
  on_thought=on_thought,
)
subs = load_sub_agents_from_dir(".agents", base_agent=default)

orch = OrchestratorAgent(
  planner=default, sub_agents=subs, sessions=sessions,
)

print(orch.run(session_id="sess1", query="Audit repo for secrets and summarize."))

CLI

agentsdk run --agents-dir .agents --show-thoughts --query "Your task"

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentsdk_ayush2-0.1.2.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentsdk_ayush2-0.1.2-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file agentsdk_ayush2-0.1.2.tar.gz.

File metadata

  • Download URL: agentsdk_ayush2-0.1.2.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.4

File hashes

Hashes for agentsdk_ayush2-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8d33c3fa039f0755efab838ddbd2e9b63d94f10e519bbd41e2e32dde93abbf8a
MD5 59754888b5f9ec2da39c00127c11c014
BLAKE2b-256 40d4bf41c9ed9192c73441036744f91d85bf1ac53455d3a96eae25d6cd070ea5

See more details on using hashes here.

File details

Details for the file agentsdk_ayush2-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for agentsdk_ayush2-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1b752b69645344f6fafb8f7be607ac773575ab4d49450ae8ec065562757f4c69
MD5 d5dc7acb2a09ddb5be703a16f60f0e2a
BLAKE2b-256 7d15d9dc58838ee171f6b79d3b48e9b2946f1bf1f918a8ecc566a49a15996b91

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page