Getting started
Requirements
Section titled “Requirements”- Rust toolchain (edition 2024 per workspace
Cargo.toml). - Node.js 20+ for this documentation site (
docs/).
Library workspace
Section titled “Library workspace”git clone https://github.com/promptfleet/promptfleet-agents.gitcd promptfleet-agentscargo checkWASM targets use wasm32-wasip1 (see repository AGENTS.md).
Crate groups
Section titled “Crate groups”The workspace contains 25 crates organized into five areas:
- SDK / Core —
agent_sdk,agent_core,pf_macros,pf-types,pf_config - A2A Protocol —
protocol_transport_core,a2a_protocol_core,a2a_http_client,a2a_http_server,a2a_app_ports,a2a_rpc_macros - LLM —
llm_client,llm_context_core,llm_tools,llm_tool_macros,tool_web_search - Observability —
observability,observability_core,structured_logging,otel,prometheus - Support / Integration —
foundation_utils,mcp_protocol,pf_test_harness,umao_agents
See Architecture for the full crate map.
API documentation
Section titled “API documentation”cargo doc --no-deps -p agent_sdkcargo doc --no-deps -p a2a_protocol_corecargo doc --no-deps -p llm_clientcargo doc --no-deps -p observability# …other crates as neededThis documentation site
Section titled “This documentation site”Always cd docs first. Only docs/package.json exists; the repository root is Rust-only. Running yarn at the root uses Yarn 1 (e.g. Homebrew) and can create stray yarn.lock / node_modules at the root.
cd docscorepack enableyarn installyarn devYarn version: docs/package.json pins Yarn 4 via packageManager. corepack enable (once per machine) makes the yarn shim respect that. Without Corepack, Yarn 1 may run and fail with “Ambiguous Syntax Error” on Berry-only flags.
- Local: use
yarn install(no--immutable). - CI: the repo workflow uses
yarn install --immutableso the lockfile cannot change during the build.
Build for production:
yarn buildOutput is written to docs/dist/ (with base set for GitHub Pages).