Storefront has been decoupled into micro-frontends with a dedicated commerce app and shared shell.

Read the architecture guide →

Primary conversational book discovery and recommendation specialist that grounds catalog answers in read-only MCP lookups and delegated research while never mutating orders, baskets, or reviews.

Microsoftmodel-routerAI Agent

Role & Autonomy Boundary

Book Agent is the primary conversational book discovery and recommendation specialist hosted in Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs. It is triggered when the intent router inside Chat Agent OrchestrationFlowv1.0.0Chat Agent OrchestrationA customer submits a conversational request through Storefront; Chat API screens input, routes via a non-LLM classifier ...Ownerai-capabilities-teamView flowOpen docs classifies an authenticated customer chat turn as a book discovery, catalog lookup, or recommendation request, or when QA AgentAgentv1.0.0QA AgentRead-only customer support and store-policy specialist that answers operational, shipping, returns, account, and billing...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs hands off a book-specific follow-up.

Book Agent operates strictly within a read-only discovery boundary: it must never place orders, mutate baskets, publish or edit reviews, bypass caller authorization, or invent unverified catalog facts such as prices, availability, or ratings.

Agent Profile & Model Governance

PropertyValue
Bounded Context / DomainConversational (BookWormDomainv1.0.0BookWormCore e-commerce domain for the BookWorm online bookstore, coordinating catalog discovery, customer baskets, order fulfil...Ownerarchitecture-enabling-teamDiagramRepositoryOpen docs)
Owner TeamAI Capabilities TeamTeamAI Capabilities TeamComplicated-Subsystem team owning BookWorm's multi-agent conversational discovery, MCP/A2A protocols, vector ingestion, ...Open docs
Hosting ServiceChat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs
LLM Provider & ModelMicrosoft Foundry model-router (2025-11-18; temperature: 0.7, maxOutputTokens: 2000, reasoningEffort: high)
Interaction ProtocolStreaming AG-UI over HTTP (inbound); MCP Streamable HTTP (outbound to MCP ServerServicev1.0.0MCP ServerInternal stateless Streamable HTTP MCP service that exposes read-only Catalog lookup tools and reusable AI prompts. PublishesListBooksGrpc, GetBookDetailsGrpc +2Ownerai-capabilities-teamDiagramRepositoryOpen docs); A2A gRPC (handoff to reviews)
Memory / Context ScopeDurable AG-UI session state in Chat Session Blob StorageContainerv1.0.0Chat Session Blob StorageAuthoritative Azure Blob Storage container owned by the Conversational bounded context for durable AG-UI multi-turn chat...Ownerai-capabilities-teamDiagramOpen docs, user-scoped reading preference memory, and local planning/file state
Fallback BehaviorFalls back to Markdown responses if storefront UI tools are absent; fails closed on PII screening or policy denial

Tools & Capabilities

NameTypeDescriptionURL
search_catalogMCPSearches the book catalog by keyword or semantic description.-
get_bookMCPRetrieves full catalog details for a known book identifier.-
list_categoriesMCPLists all available book categories in the catalog.-
list_authorsMCPLists authors available in the catalog.-
Book Catalog ResearchersubagentDelegates multi-part factual catalog lookups to the Book Catalog Researcher subagent.-
Book Recommendation ResearchersubagentDelegates preference-based shortlist discovery to the Book Recommendation Researcher subagent.-
handoff_to_ratinghandoffTransfers review summary and rating quality requests to the Rating Agent over A2A gRPC after resolving an exact book ID.-
handoff_to_qahandoffTransfers store policy, shipping, returns, account, order, or billing inquiries to the QA Agent.-
Capability / ToolAccess LevelTarget ResourceGuardrail / Constraint
search_catalog, get_book, list_categories, list_authorsReadMCP ServerServicev1.0.0MCP ServerInternal stateless Streamable HTTP MCP service that exposes read-only Catalog lookup tools and reusable AI prompts. PublishesListBooksGrpc, GetBookDetailsGrpc +2Ownerai-capabilities-teamDiagramRepositoryOpen docsGoverned by default-deny policy; executes with On-Behalf-Of (OBO) caller identity
Book Catalog ResearcherDelegateBook Catalog ResearcherAgentv1.0.0Book Catalog ResearcherInternal delegated subagent that performs low-temperature factual catalog lookups for the Book Agent and never communica...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docsInvoked only for multi-part factual lookups; inherits parent PII and guardrail middleware
Book Recommendation ResearcherDelegateBook Recommendation ResearcherAgentv1.0.0Book Recommendation ResearcherInternal delegated subagent that curates catalog-verified book shortlists matching customer preferences for the Book Age...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docsInvoked in parallel for preference-based shortlists; inherits parent middleware
handoff_to_ratingDelegateRating AgentAgentv1.0.0Rating AgentRead-only review intelligence specialist that summarizes customer feedback over A2A gRPC and map-reduce workflows while ...PublishesAnalyzeText, AnonymizeTextOwnercatalog-experience-teamDiagramRepositoryOpen docsPermitted only after resolving a single exact book identifier and title
handoff_to_qaDelegateQA AgentAgentv1.0.0QA AgentRead-only customer support and store-policy specialist that answers operational, shipping, returns, account, and billing...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docsTransfers store policy, shipping, returns, account, order, or billing questions
Planning & skill harness (load_skill, todos_*, mode_*)Read / WriteScoped session planning & book-catalog skillMulti-step plans pause in Plan Mode for user approval before switching to Execute Mode
Storefront UI tools (showBookCard, showBookList, addToBasket)DelegateStorefront AG-UI clientEmitted only when advertised by the client; cart actions execute client-side under user auth

Data, Messaging & Handoff Boundaries

  1. Receive routed turn and client context

    The orchestrator validates the prompt, injects live storefront context, and filters candidate tools using the decision model before invoking Book Agent.

  2. Delegate parallel research when needed

    For multi-part queries, Book Agent delegates factual verification to Book Catalog ResearcherAgentv1.0.0Book Catalog ResearcherInternal delegated subagent that performs low-temperature factual catalog lookups for the Book Agent and never communica...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs and preference matching to Book Recommendation ResearcherAgentv1.0.0Book Recommendation ResearcherInternal delegated subagent that curates catalog-verified book shortlists matching customer preferences for the Book Age...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs concurrently.

  3. Synthesize grounded response or hand off

    Book Agent merges verified catalog identifiers into structured storefront UI cards or Markdown, or hands off to Rating AgentAgentv1.0.0Rating AgentRead-only review intelligence specialist that summarizes customer feedback over A2A gRPC and map-reduce workflows while ...PublishesAnalyzeText, AnonymizeTextOwnercatalog-experience-teamDiagramRepositoryOpen docs or QA AgentAgentv1.0.0QA AgentRead-only customer support and store-policy specialist that answers operational, shipping, returns, account, and billing...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs when the intent crosses specialist boundaries.

Safety, Privacy & AI Governance

  • Fail-Closed PII Redaction: Input and buffered streaming output pass through Presidio APIServicev1.0.0Presidio APIExternal HTTP sidecar API for detecting PII in text and anonymizing detected entities in the Chat and Rating AI agent pi...SubscribesAnalyzeText, AnonymizeText +3APIsOpenAPIOwnerplatform-engineering-teamDiagramOpen docs (AnalyzeText followed by AnonymizeText, replacing detected entities with <PII>). Any screening failure aborts the turn.
  • Default-Deny Tool Governance: Only explicitly allow-listed tools for Book Agent’s workload identity can execute; unapproved tools and cross-domain mutations are blocked by policy.
  • Conversation Guardian & Loop Protection: Enforces a maximum of 30 conversation turns, caps retry cycles at 3, and screens for multi-turn prompt injection and escalating or offensive rhetoric.
  • Context Compaction & Observability: Applies full conversation compaction before model context limits are reached and emits OpenTelemetry traces correlated to the caller’s session.
Warning

Book Agent must never claim a book is in stock, quote unverified prices, or fabricate ratings. All product claims must originate from live MCP ServerServicev1.0.0MCP ServerInternal stateless Streamable HTTP MCP service that exposes read-only Catalog lookup tools and reusable AI prompts. PublishesListBooksGrpc, GetBookDetailsGrpc +2Ownerai-capabilities-teamDiagramRepositoryOpen docs responses, and review quality analysis must be handed off to Rating AgentAgentv1.0.0Rating AgentRead-only review intelligence specialist that summarizes customer feedback over A2A gRPC and map-reduce workflows while ...PublishesAnalyzeText, AnonymizeTextOwnercatalog-experience-teamDiagramRepositoryOpen docs only after resolving a single exact book ID.

Architecture Visualizations

Agent Orchestration and Tool Boundary

Loading graph...