Skip to main content

SGR Agent Core - Schema-Guided Reasoning for building agent

Project description

SGR Agent Core — the first SGR open-source agentic framework for Schema-Guided Reasoning

Description

SGR Concept Architecture Open-source agentic framework for building intelligent research agents using Schema-Guided Reasoning. The project provides a core library with a extendable BaseAgent interface implementing a two-phase architecture and multiple ready-to-use research agent implementations built on top of it.

The library includes extensible tools for search, reasoning, and clarification, real-time streaming responses, OpenAI-compatible REST API. Works with any OpenAI-compatible LLM, including local models for fully private research.


Documentation

Get started quickly with our documentation:


Quick Start

Installation

pip install sgr-agent-core

Running Research Agents

The project includes example research agent configurations in the examples/ directory. To get started with deep research agents:

  1. Copy and configure the config file:
cp examples/sgr_deep_research/config.yaml my_config.yaml
# Edit my_config.yaml and set your API keys:
# - llm.api_key: Your OpenAI API key
# - search.tavily_api_key: Your Tavily API key (optional)
  1. Run the API server using the sgr utility:
sgr --config-file examples/sgr_deep_research/config.yaml

The server will start on http://localhost:8010 with OpenAI-compatible API endpoints.

Note: You can also run the server directly with Python:

python -m sgr_agent_core.server --config-file examples/sgr_deep_research/config.yaml

For more examples and detailed usage instructions, see the examples/ directory.


Benchmarking

SimpleQA Benchmark Comparison

Performance Metrics on gpt-4.1-mini:

  • Accuracy: 86.08%
  • Correct: 3,724 answers
  • Incorrect: 554 answers
  • Not Attempted: 48 answers

More detailed benchmark results are available here.


Open-Source Development Team

All development is driven by pure enthusiasm and open-source community collaboration. We welcome contributors of all skill levels!

If you have any questions - feel free to join our community chat↗️ or reach out Valerii Kovalskii↗️.

Special Thanks To:

This project is developed by the neuraldeep community. It is inspired by the Schema-Guided Reasoning (SGR) work and SGR Agent Demo↗️ delivered by "LLM Under the Hood" community and AI R&D Hub of TIMETOACT GROUP Österreich↗️

This project is supported by the AI R&D team at red_mad_robot, providing research capacity, engineering expertise, infrastructure, and operational support.

Learn more about red_mad_robot: redmadrobot.ai↗️ habr↗️ telegram↗️

Star History

Star History Chart

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

sgr_agent_core-0.5.2.tar.gz (63.9 kB view details)

Uploaded Source

Built Distribution

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

sgr_agent_core-0.5.2-py3-none-any.whl (46.9 kB view details)

Uploaded Python 3

File details

Details for the file sgr_agent_core-0.5.2.tar.gz.

File metadata

  • Download URL: sgr_agent_core-0.5.2.tar.gz
  • Upload date:
  • Size: 63.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sgr_agent_core-0.5.2.tar.gz
Algorithm Hash digest
SHA256 71b208b43848524389dd1abebd866d7f16426406260742e1f1c01e1f26d83852
MD5 a9bd4eab5972310183f696928cb7ac29
BLAKE2b-256 a683785c453fb8a5c5dca9651d83ac8209e0e1c2484bb3eaba378c89a735a9be

See more details on using hashes here.

File details

Details for the file sgr_agent_core-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: sgr_agent_core-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 46.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sgr_agent_core-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 252a3352d5e903b44716f7d9ca6503b0714502aac98e383aa7a355387b5762e6
MD5 38f1e211f342c220b84e9a5755a0657e
BLAKE2b-256 2cc82bf8679458940dce9c64220fa46a33163a6689e700c3e351a93b4ce3abf2

See more details on using hashes here.

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