Skip to main content

LOGOS — Autonomous Research Intelligence Agent. 6-agent AI research pipeline with persistent memory, human-in-the-loop clarifications, and story-driven CLI.

Project description

LOGOS: Autonomous Multi-Agent Research Intelligence System

LOGOS is a production-grade, enterprise-ready multi-agent research and competitive intelligence pipeline built on Microsoft Azure AI Foundry. It is designed to assist market analysts, executives, and investment firms in scanning industry trends, profiling competitors, assessing strategic risks, and compiling comprehensive strategy reports.


Technical Architecture Overview

LOGOS implements a sequential, context-accumulating multi-agent pipeline composed of six specialized reasoning agents. The system utilizes Microsoft Azure AI Foundry's model orchestration layer, stateful agent runtime, and Model Context Protocol (MCP) search tools to deliver highly grounded and cited analysis.

                         [ User Query / CLI / API ]
                                     │
                                     ▼
                      [ SQLite Persistent Memory Load ]
                                     │
                                     ▼
                    [ Human-in-the-Loop Clarification ]
                                     │
                                     ▼
                       [ Azure AI Foundry Workflow ]
                                     │
           ┌─────────────────────────┼─────────────────────────┐
           ▼                         ▼                         ▼
      Planner Agent           Researcher Agent        Industry News Scanner
      (GPT o4 Mini)            (GPT o4 Mini)            (GPT-4.1 Mini)
           │                         │                         │
           └─────────────────────────┼─────────────────────────┘
                                     │
                                     ▼
           ┌─────────────────────────┼─────────────────────────┐
           ▼                         ▼                         ▼
    Competitive Intel           Analyst Agent             Writer Agent
     (GPT-4.1 Mini)            (GPT-4.1 Mini)             (GPT-4.1)
           │                         │                         │
           └─────────────────────────┼─────────────────────────┘
                                     │
                                     ▼
                      [ SQLite Persistent Memory Sync ]
                                     │
                                     ▼
                           [ Final Strategy Report ]

Core Features and Capabilities

  • 6-Agent Sequential Execution Pipeline: Orchestrates distinct analytical stages from initial query decomposition to the final markdown report compilation.
  • Dual Integration APIs: Leverages the high-performance Responses API for visual-workflow-backed agents and the stateful Agents Thread & Run API for pre-deployed cloud assistants.
  • Model Context Protocol (MCP) Grounding: Integrates Tavily Web Search and Azure AI Web Search (Bing) to query real-time data indices without relying on static pre-training.
  • Input & Output Guardrails: Implements strict safety validation layers to redact sensitive personally identifiable information (PII) and ensure content compliance.
  • Short-Term and Long-Term Memory: Utilizes a persistent SQLite store (memory.db) to profile user preferences, track entity mention frequencies, and log past strategic insights.
  • FastAPI REST API & Command-Line Interfaces: Features a dual-interface delivery model (an interactive REPL CLI and a fully documented FastAPI backend).
  • Azure Container Registry (ACR) Deployment: Pre-configured container builds uploaded to the reasoningagentregistry for deployment on the stateful, hosted Foundry Agent Service.

Agent Persona and Character Design

The system divides labor across six specialized agents, each fine-tuned with specific system instructions and model deployment targets:

  1. Planner Agent (planner-agent): Decomposes the primary business goal into structured sub-tasks. It estimates execution times and defines required tools.
  2. Researcher Agent (researcher-agent): Executes live searches via the MCP toolboxes to fetch verified data and source URLs.
  3. Industry News Scanner (industry-news-trend-scanner): Focuses on breaking developments and near-term market signals from the last 3-6 months.
  4. Competitive Landscape Researcher (competitive-landscape-researcher): Maps industry competitors, assesses market share, and identifies product differentiation gaps.
  5. Analyst Agent (analyst-agent): Performs qualitative analysis, categorizes evidence strength, and builds a probability-impact risk matrix.
  6. Writer Agent (writer-agent): Synthesizes the aggregated findings and drafts the final formal report using a standard corporate strategy template.

Documentation Index

Detailed design specs, execution logs, and guides are organized within the docs/ directory:


Quick Start & Installation

Local Developer Installation

LOGOS can be installed in editable developer mode to modify source files:

# Clone the repository
git clone https://github.com/madhesh60/logos_reasoning_agent.git
cd logos_reasoning_agent

# Create and activate a virtual environment
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate

# Install dependencies and editable package
pip install -e .
pip install -e .[dev]

CLI Command Execution

# Launch the interactive research shell (REPL)
logos

# Execute a query directly and save the report
logos -q "Evaluate the 2026 market prospects for hydrogen fuel cells."

# Bypass cloud API calls (Local Emulation Mode)
logos --no-a2a -q "Summarize advancements in solid-state batteries."

# Run a diagnostics check on model endpoints
logos --model-test

Checking Agent Memory & Personalization

To view or print the agent's persisted memory database:

  1. Launch the interactive shell:
    logos
    
    (Or if running directly via python: python logos/cli.py)
  2. Once the greeting banner displays, type memory at the prompt:
    > memory
    
    This prints a clean, beautifully formatted panel containing Personalization Details, Recent investigations history, and Frequently researched entities.
  3. You can also view your bookmarked findings by typing:
    > insights
    

FastAPI Web Server Execution

# Launch the API server locally
uvicorn main:app --reload --port 8000

Production Deployment Workflow

LOGOS is containerized and ready to be pushed to your cloud environment:

  1. Build the Container Image:
    docker build -t reasoningagentregistry.azurecr.io/logos-research-agent:latest .
    
  2. Authenticate & Push to Azure Container Registry (reasoningagentregistry):
    az acr login --name reasoningagentregistry
    docker push reasoningagentregistry.azurecr.io/logos-research-agent:latest
    
  3. Provision in Azure AI Foundry: Deploy the pushed container image as a managed hosted agent within the Foundry Agent Service, attaching Managed Identities (Entra ID) for secure keyless access to Azure OpenAI and Azure Search endpoints.

System Observability and Verification

LOGOS outputs structured JSON logging formatted by structlog, making it directly indexable by monitoring solutions like Azure Monitor and Application Insights.

Run the unit test suite to verify pipeline integrity:

pytest tests/test_agents.py -v

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

logos_research-1.0.0.tar.gz (44.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

logos_research-1.0.0-py3-none-any.whl (52.7 kB view details)

Uploaded Python 3

File details

Details for the file logos_research-1.0.0.tar.gz.

File metadata

  • Download URL: logos_research-1.0.0.tar.gz
  • Upload date:
  • Size: 44.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for logos_research-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1af36e0a42e3ca5f60d1643634231752ce7fec8b38419d1283cae12a626b537d
MD5 a8773a7e6d6f7a1c94b7d986759c5658
BLAKE2b-256 a54fd78bc76fea3fa4f729bd232a0956ce22eefd1cce3757dcceca311da75d55

See more details on using hashes here.

Provenance

The following attestation bundles were made for logos_research-1.0.0.tar.gz:

Publisher: publish.yml on madhesh60/logos_reasoning_agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file logos_research-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: logos_research-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 52.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for logos_research-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a61fd98759781f6d0f22cf4b2c7a93206fac7227afc15f86bc869635d49d0e43
MD5 3d29f9d071716c90f8dd60a58a1fec1b
BLAKE2b-256 b569c8d727d6c49e00cfd0d794f5275014467f3ae0365d48eaea69917163add5

See more details on using hashes here.

Provenance

The following attestation bundles were made for logos_research-1.0.0-py3-none-any.whl:

Publisher: publish.yml on madhesh60/logos_reasoning_agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page