Documentation Index
Fetch the complete documentation index at: https://docs.litigationlabs.io/llms.txt
Use this file to discover all available pages before exploring further.
How LitigationLabs Works
LitigationLabs employs a multi-agent AI architecture to create realistic courtroom simulations. This page explains the underlying methodology and how different components interact to produce an authentic trial experience.Multi-Agent Orchestration
Unlike simple chatbot interactions, LitigationLabs coordinates multiple AI agents that operate independently yet coherently within a shared courtroom context. Each agent has distinct objectives, knowledge boundaries, and behavioral parameters.The Agent Ensemble
Four primary agents participate in each simulation:| Agent | Role | Objective |
|---|---|---|
| Witness Agent | Responds to examination questions | Provide testimony consistent with their profile while protecting unfavorable facts |
| Opposing Counsel Agent (OCA) | Raises objections and conducts cross-examination | Challenge improper questions; elicit facts favorable to their side |
| Judge Agent | Rules on objections and maintains order | Apply the Federal Rules of Evidence fairly and consistently |
| Orchestrator | Coordinates agent interactions | Manage turn order, context sharing, and session state |
Agent Coordination
The orchestrator manages the flow of information between agents:- You ask a question → The orchestrator routes it to the appropriate agents
- OCA evaluates → Opposing counsel decides whether to object
- If objection raised → Judge agent rules; you may respond
- Witness responds → Based on the question and any sustained objections
- Scoring evaluates → System checks if the answer matches any elicits
Witness Behavior Model
Witness agents operate within defined behavioral parameters that simulate realistic testimony patterns.Profile-Based Responses
Each witness has a profile containing:- Background information: Who they are and their relationship to the case
- Knowledge boundaries: What they know and do not know
- Demeanor traits: How they respond under pressure
- Protected facts: Information they will resist revealing
Credibility and Resistance
Witnesses do not simply recite facts on demand. The system models:- Initial resistance: Witnesses may deflect or provide incomplete answers initially
- Progressive disclosure: Skillful questioning leads to more complete testimony
- Credibility degradation: Contradictions or admissions affect the witness’s perceived reliability
Objection Handling
The objection system implements the Federal Rules of Evidence with intentional imperfection to create realistic training conditions.OCA Objection Logic
Opposing counsel evaluates each question against multiple criteria:- Form objections: Leading, compound, argumentative, assumes facts not in evidence
- Evidentiary objections: Hearsay, relevance, foundation, speculation
- Privilege and competence: Attorney-client privilege, lack of personal knowledge
Judge Ruling Methodology
When an objection is raised, the judge agent:- Analyzes the question against the cited grounds
- Considers any response or exception you raise
- Applies the relevant Federal Rules of Evidence
- Delivers a ruling with legal reasoning
Thread Replies
Objection exchanges can involve multiple back-and-forth responses:- OCA objects with grounds
- You may argue an exception or dispute the objection
- OCA responds to your argument
- Judge issues final ruling
Scoring Methodology
The scoring system measures your effectiveness at extracting key facts (elicits) from witnesses.Semantic Matching
Rather than requiring exact phrase matches, the system uses semantic similarity to evaluate whether a witness’s answer establishes a target fact:Matching Thresholds
The system applies tiered matching:| Threshold | Similarity | Result |
|---|---|---|
| Strong match | 60%+ | Direct or paraphrased admission |
| Standard match | 40%+ | Related concept established |
| Keyword fallback | 30%+ | Legacy matching for edge cases |
Score Calculation
Each elicit carries a weight reflecting its importance to the case. Your score aggregates:- Points for each elicit successfully established
- Bonus for effective objection handling
- Deductions for missed objections (failing to object when appropriate)
Session Persistence
All session data persists automatically:- Transcript: Complete record of all questions, answers, objections, and rulings
- Score state: Running tally of established elicits and points
- Testimony state: Which witnesses have been examined and their current credibility
- Phase tracking: Current position in the trial sequence
Context Management
Long examinations can exceed the context limits of underlying language models. The system handles this through:Testimony Compression
As the transcript grows, earlier exchanges are compressed into summary form while preserving:- Established facts
- Key objection rulings
- Witness credibility state
- Critical admissions
Agent Memory
Each agent maintains its own memory of the proceeding:- OCA memory: Tracks which questions have been asked to prevent repetition
- Witness memory: Maintains consistency across the examination
- Judge memory: Recalls prior rulings for consistency
Customization and Configuration
Administrators can tune agent behavior through the configuration system:- OCA error rate: Adjust how often opposing counsel makes intentional mistakes
- Objection types: Enable or disable specific objection categories
- Scoring thresholds: Modify semantic matching sensitivity
- Deduplication settings: Control how aggressively OCA avoids repetitive questions