Skip to main content

SAGE Agentic Framework - Agent framework, planning, tool selection, and workflow

Project description

SAGE Agentic Framework

Independent package for agentic AI capabilities: tool selection, planning, workflows, and agent coordination

PyPI version Python 3.10+ License: MIT

🎯 Overview

sage-agentic provides a comprehensive framework for building agentic AI systems with:

  • Tool Selection: Multiple strategies (keyword, embedding, hybrid, DFS-DT, Gorilla)
  • Planning Algorithms: ReAct, Tree of Thoughts (ToT), hierarchical planning
  • Workflow Management: Workflow orchestration and optimization
  • Agent Coordination: Multi-agent collaboration and registry
  • SIAS: Sample-Importance-Aware Selection for tool/trajectory curation
  • Reasoning: Advanced reasoning capabilities and timing decisions

📦 Installation

# Basic installation
pip install isage-agentic

# With LLM support
pip install isage-agentic[llm]

# Development installation
pip install isage-agentic[dev]

�� Quick Start

Tool Selection

from sage_agentic.agents.action.tool_selection import HybridToolSelector

# Create selector
selector = HybridToolSelector(embedder=your_embedder)

# Select tools
tools = selector.select(
    query="search for research papers",
    available_tools=all_tools,
    k=3
)

Planning

from sage_agentic.agents.planning import ReActPlanner

# Create planner
planner = ReActPlanner(llm=your_llm_client)

# Generate plan
plan = planner.plan(
    task="Analyze this document and summarize key findings",
    context={"document": doc_content}
)

Workflow Management

from sage_agentic.workflow import WorkflowEngine

# Create workflow
workflow = WorkflowEngine()

# Register and execute workflows
workflow.register("data_pipeline", pipeline_config)
result = workflow.execute("data_pipeline", inputs=data)

📚 Key Components

1. Planning (agents/planning/)

Planning algorithms and strategies:

  • ToT (Tree of Thoughts): Multi-path reasoning with backtracking
  • ReAct: Reasoning + Acting interleaved execution
  • Hierarchical Planner: Hierarchical task decomposition
  • Dependency Graph: Task dependency management
  • Timing Decider: Execution timing optimization

2. Tool Selection (agents/action/tool_selection/)

Tool selection strategies:

  • Keyword Selector: Rule-based keyword matching
  • Embedding Selector: Semantic similarity-based selection
  • Hybrid Selector: Combined keyword + embedding approach
  • DFS-DT Selector: Decision tree-based selection
  • Gorilla Adapter: Gorilla-style tool retrieval

3. SIAS (sias/)

Sample-Importance-Aware Selection for:

  • Tool selection optimization
  • Trajectory curation
  • Continual learning with core-set selection

4. Evaluation (eval/)

Agent evaluation capabilities:

  • Metrics tracking
  • Determinism testing
  • Telemetry and monitoring

5. Interfaces & Registry (interface/, registry/)

Unified interfaces and registration system for:

  • Planners
  • Tool selectors
  • Workflows
  • Agents

🔧 Architecture

sage_agentic/
├── agents/                 # Agent implementations
│   ├── action/            # Action and tool selection
│   ├── planning/          # Planning algorithms
│   └── intent/            # Intent detection
├── workflow/              # Workflow orchestration
├── sias/                  # Sample-Importance-Aware Selection
├── reasoning/             # Reasoning capabilities
├── eval/                  # Evaluation tools
├── interface/             # Protocol definitions
├── interface/             # Protocols, registries, schemas
└── registry/              # Component registry

🎓 Use Cases

  1. Multi-Agent Systems: Build coordinated multi-agent workflows
  2. Tool-Augmented LLMs: Select and use external tools intelligently
  3. Hierarchical Planning: Decompose complex tasks into subtasks
  4. Adaptive Systems: Use SIAS for intelligent sample selection
  5. Research: Experiment with different planning and selection strategies

🔗 Integration with SAGE

This package is part of the SAGE ecosystem but can be used independently:

# Standalone usage
from sage_agentic import ReActPlanner, HybridToolSelector

# With SAGE (if installed)
from sage.libs.agentic import ReActPlanner  # Compatibility layer

📖 Documentation

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

MIT License - see LICENSE file for details.

🙏 Acknowledgments

Originally part of the SAGE framework, now maintained as an independent package for broader community use.

📧 Contact

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

isage_agentic-0.1.0.4.tar.gz (120.3 kB view details)

Uploaded Source

Built Distribution

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

isage_agentic-0.1.0.4-py2.py3-none-any.whl (155.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file isage_agentic-0.1.0.4.tar.gz.

File metadata

  • Download URL: isage_agentic-0.1.0.4.tar.gz
  • Upload date:
  • Size: 120.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for isage_agentic-0.1.0.4.tar.gz
Algorithm Hash digest
SHA256 025d50d156e2eaec8f1b00743a61a15432fa9c27b8595de07343245351e278f6
MD5 6390813890bcdd0ac2aea0403ba3347a
BLAKE2b-256 e57d51521ce201b8779b7ed351025552f2a9ad4c0cb748a479d40d3c20525fe3

See more details on using hashes here.

File details

Details for the file isage_agentic-0.1.0.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for isage_agentic-0.1.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 de74d984499a09aa25a4bdb0c6fc6ab46c5cf71a7c98d65d42a0f6b0e98b4aad
MD5 7febc739683d37a9d07bf424100960d0
BLAKE2b-256 187189e0da094165da9bb70c8a094c7eab161462b6cf0e9ddd94fa0d904bd7eb

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