Book Agent
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.
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
| Property | Value |
|---|---|
| Bounded Context / Domain | Conversational (BookWormDomainv1.0.0BookWormCore e-commerce domain for the BookWorm online bookstore, coordinating catalog discovery, customer baskets, order fulfil...Ownerarchitecture-enabling-teamDiagramRepositoryOpen docs) |
| Owner Team | AI Capabilities TeamTeamAI Capabilities TeamComplicated-Subsystem team owning BookWorm's multi-agent conversational discovery, MCP/A2A protocols, vector ingestion, ...Open docs |
| Hosting Service | Chat 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 & Model | Microsoft Foundry model-router (2025-11-18; temperature: 0.7, maxOutputTokens: 2000, reasoningEffort: high) |
| Interaction Protocol | Streaming 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 Scope | Durable 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 Behavior | Falls back to Markdown responses if storefront UI tools are absent; fails closed on PII screening or policy denial |
Tools & Capabilities
| Name | Type | Description | URL |
|---|---|---|---|
| search_catalog | Searches the book catalog by keyword or semantic description. | ||
| get_book | Retrieves full catalog details for a known book identifier. | ||
| list_categories | Lists all available book categories in the catalog. | ||
| list_authors | Lists authors available in the catalog. | ||
| Book Catalog Researcher | subagent | Delegates multi-part factual catalog lookups to the Book Catalog Researcher subagent. | |
| Book Recommendation Researcher | subagent | Delegates preference-based shortlist discovery to the Book Recommendation Researcher subagent. | |
| handoff_to_rating | handoff | Transfers review summary and rating quality requests to the Rating Agent over A2A gRPC after resolving an exact book ID. | |
| handoff_to_qa | handoff | Transfers store policy, shipping, returns, account, order, or billing inquiries to the QA Agent. |
| Capability / Tool | Access Level | Target Resource | Guardrail / Constraint |
|---|---|---|---|
search_catalog, get_book, list_categories, list_authors | Read | 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 | Governed by default-deny policy; executes with On-Behalf-Of (OBO) caller identity |
Book Catalog Researcher | Delegate | 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 | Invoked only for multi-part factual lookups; inherits parent PII and guardrail middleware |
Book Recommendation Researcher | Delegate | 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 | Invoked in parallel for preference-based shortlists; inherits parent middleware |
handoff_to_rating | Delegate | 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 | Permitted only after resolving a single exact book identifier and title |
handoff_to_qa | Delegate | 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 | Transfers store policy, shipping, returns, account, order, or billing questions |
Planning & skill harness (load_skill, todos_*, mode_*) | Read / Write | Scoped session planning & book-catalog skill | Multi-step plans pause in Plan Mode for user approval before switching to Execute Mode |
Storefront UI tools (showBookCard, showBookList, addToBasket) | Delegate | Storefront AG-UI client | Emitted only when advertised by the client; cart actions execute client-side under user auth |
Data, Messaging & Handoff Boundaries
- Data Stores: Book Agent does not read or write relational or document domain databases directly. Durable conversation transcripts are managed by Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs 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, while user reading preferences and scratchpad planning files remain isolated from business domain stores.
- Messages: Every input prompt and buffered streaming output is screened via 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 using Analyze textCommandv1.0.0Analyze textDetects PII entities in one text string or a batch, returning entity types, text offsets, confidence scores, and optiona...Ownerplatform-engineering-teamSchemaDiagramOpen docs and Anonymize textCommandv1.0.0Anonymize textReplaces or transforms detected PII in text using the supplied analysis results and configured anonymization operators.Ownerplatform-engineering-teamSchemaDiagramOpen docs.
- Delegation & Handoffs: Complex multi-constraint queries fan out in parallel 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 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. Review quality questions hand off over A2A gRPC 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, and operational support questions hand off in-process to 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.
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.
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.
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 (
AnalyzeTextfollowed byAnonymizeText, 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
30conversation turns, caps retry cycles at3, 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.
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.
- Absent UI Tools: When storefront interactive card tools are not advertised in the client context, Book Agent falls back to structured Markdown links and summaries.
- Ambiguous Intent: Low-confidence routing pauses for human-in-the-loop disambiguation before Book Agent is invoked.
- Evaluation: Verified against deterministic tool allow/deny tests, adversarial multi-turn prompt-injection suites, and Presidio fail-closed fault injection.
Architecture Visualizations
Agent Orchestration and Tool Boundary
Loading graph...
Related Documentation
- Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs — Hosting AG-UI server, workflow orchestration, and Entra ID authorization.
- 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 — End-to-end conversational routing, disambiguation, and handoff flow.
- 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 — Delegated subagent for factual catalog lookups.
- 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 — Delegated subagent for preference-based shortlists.
- 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 — Peer specialist handling store policy and support handoffs.
- 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 — Remote A2A specialist handling review and rating handoffs.
- 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 — Durable AG-UI session storage managed by Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs.
- AI GovernanceCustom DocAI GovernanceInput screening, privacy middleware, policy enforcement, and tool boundaries for BookWorm's AI workflows.Ownerai-capabilities-teamOpen doc — Cross-cutting AI governance rules and standards.
- ADR-BW-014: Compose shared governance on each enabled AI pathDecision Recordv1.0.0ADR-BW-014: Compose shared governance on each enabled AI pathReuse privacy, guardrail, and policy mechanisms across Chat and Rating while verifying registration and permissions on e...Ownerai-capabilities-teamOpen docs — Shared governance composition across AI paths.
- ADR-002: Apply PII filtering to agent input and outputDecision Recordv1.0.0ADR-002: Apply PII filtering to agent input and outputChat agents use Presidio middleware to analyze and anonymize sensitive text, and privacy-processing failures are not byp...Ownerai-capabilities-teamOpen docs — Fail-closed PII screening decision.
- ADR-005: Grant tools according to each agent's responsibilityDecision Recordv1.0.0ADR-005: Grant tools according to each agent's responsibilityChat agents receive only the MCP tools or delegated capabilities needed for their role, with governance policies limitin...Ownerai-capabilities-teamOpen docs — Per-agent default-deny tool governance.