Skip to main content

Research Crew

A team of agents in which a coordinator hands each task to a specialist with a narrower token, and every result names the whole chain.

ApplicationPlanned
This example is planned. Not built yet. This page is the specification for the example.
Works with
PythonGoCrewAIGo net/http
Stack
CrewAI in Python, Go document service

Scenario​

An analyst asks for a market report. A coordinator agent splits the work: one agent searches internal documents, one reads the data warehouse, one writes. The searcher can read documents and nothing else. The writer can read nothing. The document service sees, for each request, the analyst, the coordinator and the specialist.

People and agents​

WhoRole in the applicationIdentity in LumoAuth
AnalystAsks for the report.A user.
CoordinatorSplits and assigns the work.An agent that acts for the analyst.
Searcher, reader, writerDo one job each.Three agents, each with one or two capabilities and its own budget.
Document serviceReturns documents.A resource that reads the actor chain.

Flows​

FlowWhat happensWhat LumoAuth does
Hand overThe analyst allows the coordinator to act.A delegated token.
NarrowThe coordinator hands the search to the searcher.A token exchange with fewer scopes. The chain grows by one actor.
ReadThe searcher asks for a document.The service checks that the analyst may read it and that the searcher holds the capability.
Inside the serviceThe request crosses three internal services.A transaction token that lives for seconds carries the identity.
TraceThe crew runs under one trace.Each audit row stores the trace ID.
CardsEach agent publishes a card.The coordinator verifies a card before it hands work over.

Parts​

PartBuilt withJob
CrewCrewAI, the Python SDKFour agents and the handover between them.
Document serviceGo, the Go SDKVerifies tokens and prints the chain.
Chain viewReactDraws the chain of each request.

What the seed script creates​

  • Four agents with their capabilities and budgets.
  • The document service as a resource.
  • Transaction tokens turned on.

Walkthrough​

  1. Ask for the report.
  2. Read the chain of the first document request.
  3. Ask the writer to read a document, and read the refusal.
  4. Open the trace in the tracing tool.

Before you run it​

  • Check that your plan includes acting for users and tracing in the plans matrix.