Skip to content

About

LOGOS is a production-grade, multi-agent reasoning 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.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

LOGOS: Autonomous Multi-Agent Research Intelligence System

LOGOS turns a research question into a Markdown report. Run the four-stage CLI with an OpenAI-compatible provider or Ollama, or use a configured Azure AI Foundry project for research with web-enabled agents. The CLI keeps a local SQLite research history. The FastAPI service returns structured reports.

How an investigation runs

The standard CLI runs a planner, researcher, analyst and writer in sequence. You can give these stages reference documents with --source. The standard pipeline uses the model and supplied material. Live web retrieval depends on tools deployed with your Foundry agents.

Foundry workflow

Planner → Researcher ┬→ Industry news ─┬→ Analyst → Writer
                     └→ Competitors ──┘

Both specialists receive the researcher's findings. The analyst receives the available output from both. If the writer fails, LOGOS tries the configured Azure chat deployment and can return partial research notes when synthesis is unavailable. A run with no usable research or report ends in failure.

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 ".[dev,api]"

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."

# Send a local document to the configured provider and cite it in the report
logos -q "Which findings support expanding the pilot?" --source pilot-notes.md

# Use your configured Foundry agents and their deployed tools
logos --foundry -q "Compare solid-state battery commercialization timelines."

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

Run logos setup once to choose a provider. For local inference, choose Ollama and an installed model. A single query saves its report to the current directory and exits without prompts. Use --source repeatedly for UTF-8 Markdown or text files, up to 48 KiB combined. The report lists supplied filenames, the citation IDs used in the text, and unmatched IDs. This checks citation labels only. A reader still needs to check whether the passage supports the claim.

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 offline test suite for the agents, API, CLI and workflow:

python -m pytest

Hackathon Submissions & Demos

This section lists the system validation runs and screenshots showcasing the working state of the agent, its memory, traces, containerization, and security guardrails.

LOGOS Demo Video

LOGOS Demo Video

Watch the LOGOS Autonomous Multi-Agent Research System in action.

1. System Architecture

System Architecture Provides a high-level overview of the multi-agent orchestration pipeline, depicting how Planner, Researcher, Industry News Scanner, Competitive Intel, Analyst, and Writer agents cooperate and coordinate in a sequential pipeline.

2. Conversation & Execution Trace

Conversation Trace A visual execution trace illustrating the active agent steps, agent-to-agent protocol exchanges, and LLM calls executed during a research session.

3. User Personalization & Short-Term Memory

User Personalization & Memory Demonstrates the persistent SQLite memory layer. Type memory inside the interactive shell to review the customized profile, domain focus, and tracked research history.

4. Running Container & Registry Deployment

Container Registry Deployment Confirms that the FastAPI service is containerized and pushed to the Azure Container Registry (reasoningagentregistry.azurecr.io), ready to be pulled by Azure AI Foundry Hosted Agent Services.

5. Input and Output Security Guardrails

Input & Output Guardrails Content Blocklist Validation Showcases active safety layers, demonstrating how toxic prompts, PII leaks, and blocked content are intercepted and sanitized in real-time.

6. FoundryIQ - Project Knowledge Base

FoundryIQ Knowledge Base Connection Validates the connection of the multi-agent system to the project knowledge base, enabling the agents to query internal documentation and custom databases.

7. Workflow Visualizer

Foundry Workflow Visualizer Displays the visual layout of the 6-agent sequential orchestration pattern as defined within the Azure AI Foundry playground.

8. Python Package Installation (PyPI View)

PyPI view Confirms local installation verification as an editable Python package, showing successful dependency resolution and environment setup.

9. Multi-Agent Setup

Multi-Agent Setup Confirms the successfully configured Azure AI Foundry assistants, listing IDs and deployment specifications.


License

MIT License

Copyright (c) 2026

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

LOGOS is a production-grade, multi-agent reasoning 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.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages