Preparing your design workspace

Loading the problem and your latest saved attempt…

Multi-Agent Financial Research Assistant

Design a secure, observable multi-agent research chat that retrieves financial documents, calls tools, and streams citation-grounded answers.

Problem statement

For this exercise, assume analysts chat over tenant-owned financial documents and public filings. A planner may delegate retrieval, calculation, compliance checking, and synthesis to specialized agents; tools may call internal services or approved external APIs.

The user receives a streamed answer with citations, can cancel work, and can reopen an auditable conversation. Sensitive tenant data must remain isolated, tool side effects require explicit policy, and retries must not duplicate a side effect.

Design ingestion, retrieval, orchestration, streaming, durable execution, security, and observability. Exclude training foundation models and executing trades.

What to build

  1. Authorized users can ingest versioned documents and make permission-filtered passages available for retrieval.
  2. A user can submit and cancel a query whose durable run orchestrates planner, retrieval, calculation, compliance, and synthesis steps.
  3. The system streams progress and answer tokens, then stores a final answer with citations, tool evidence, and an audit trail.

At scale

  • Assume 2,000 tenants, 100 million indexed document chunks, and 2,000 concurrent research runs at peak.
  • Begin streaming useful progress or answer output within two seconds at p95, while long tool-backed runs may continue for five minutes.
  • Retain conversation and audit metadata for seven years while honoring tenant document deletion and access revocation.
  • Agent and tool execution is at least once internally; externally visible side effects must be idempotent or explicitly human approved.