docs: add agentic patterns overview to cookbook - #538
Conversation
|
Hey @nuthalapativarun, the structure and descriptions are good but several code examples are broken and will fail if someone copies them. The TypeScript RAG example calls Also worth fixing in the Supervisor examples for both languages — |
Adds a new page covering the four core patterns for building multi-agent systems with Agent Squad: multi-agent routing, supervisor, sequential chain, and RAG. Each pattern includes Python and TypeScript examples and guidance on when to choose it. Updates the sidebar to surface the page under Agentic Patterns. Closes 2FastLabs#328
7d96474 to
1b10b00
Compare
Addresses review feedback from cornelcroi on PR 2FastLabs#538: - RAG (TS): AmazonKnowledgeBasesRetriever now takes a BedrockAgentRuntimeClient as its first arg, and uses the correct retrievalConfiguration field name. - RAG (Python): import AmazonKnowledgeBasesRetrieverOptions (not the nonexistent AmazonKnowledgeBasesRetrieverConfig) and use the correct retrievalConfiguration field name. - Routing (Python): route_request returns a single AgentResponse, not a tuple, so drop the erroneous `response, _ = ` unpacking. - Supervisor (TS/Python): add a comment noting that name/description passed to SupervisorAgentOptions are overwritten by the lead agent's values at runtime.
|
Thanks for the detailed review, @cornelcroi — all fixed in 6a63510:
Re-checked every changed example against the current constructor signatures and field names in |
Issue Link (REQUIRED)
Fixes #328
Summary
Changes
Adds
docs/src/content/docs/cookbook/patterns/agentic-patterns.mdx— a new cookbook page covering the four core agentic patterns for Agent Squad. Updatesastro.config.mjsto surface the page in the sidebar under a new Agentic Patterns heading.The four patterns documented:
Each pattern includes side-by-side TypeScript and Python examples and a brief "when to use" note. The page closes with a note on combining patterns.
User experience
Before: no single place explaining the architectural patterns available in Agent Squad.
After: users land on Agentic Patterns Overview from the sidebar and can immediately see code examples for their chosen pattern in their preferred language.
Checklist
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.