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: planning, workflows, and agent coordination

PyPI version Python 3.10+ License: MIT

๐Ÿ“ข Note: Tool selection algorithms have been moved to sage-agentic-tooluse for focused development.

๐ŸŽฏ Overview

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

  • Planning Algorithms: ReAct, Tree of Thoughts (ToT), hierarchical planning
  • Workflow Management: Workflow orchestration and optimization
  • Agent Coordination: Multi-agent collaboration and registry
  • 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]

๐Ÿ”ง Tool Selection (Moved to sage-agentic-tooluse)

Tool selection algorithms are now in a separate package:

# Tool selection - use sage-agentic-tooluse package
from sage_libs.sage_agentic_tooluse import (
    KeywordToolSelector,
    EmbeddingToolSelector,
    HybridToolSelector,
    DFSDTToolSelector,
    GorillaAdapter,
)

Why separate tool selection?

  • Focused development by dedicated team
  • Rapid iteration with independent versioning
  • Can be used outside SAGE ecosystem

๐Ÿš€ Quick Start

Planning

from sage_libs.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_libs.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)

Intent Recognition

from sage_libs.sage_agentic.agents.intent import IntentClassifier

# Create intent classifier
classifier = IntentClassifier()

# Classify user intent
intent = classifier.classify("Show me the sales report for last month")

๐Ÿ“š 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. Workflow (workflow/, workflows/)

Workflow orchestration capabilities:

  • Workflow Engine: Execute multi-step workflows
  • Workflow Nodes: Define workflow components
  • Workflow Edges: Connect workflow steps
  • Optimization: Workflow optimization strategies

3. Reasoning (reasoning/)

Advanced reasoning capabilities:

  • Chain of Thought: Step-by-step reasoning
  • Reflection: Self-evaluation and correction
  • Meta-reasoning: Reasoning about reasoning processes

4. Evaluation (eval/)

Agent evaluation capabilities:

  • Metrics tracking
  • Determinism testing
  • Telemetry and monitoring

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

Unified interfaces and registration system for:

  • Planners
  • Workflows
  • Agents
  • Intent classifiers

๐Ÿ”ง Architecture

sage_libs/sage_agentic/
โ”œโ”€โ”€ agents/                 # Agent implementations
โ”‚   โ”œโ”€โ”€ planning/          # Planning algorithms (ReAct, ToT, etc.)
โ”‚   โ”œโ”€โ”€ intent/            # Intent detection and classification
โ”‚   โ”œโ”€โ”€ bots/              # Bot implementations
โ”‚   โ”œโ”€โ”€ runtime/           # Runtime execution
โ”‚   โ””โ”€โ”€ profile/           # Agent profiles
โ”œโ”€โ”€ workflow/              # Workflow orchestration
โ”œโ”€โ”€ workflows/             # Workflow implementations
โ”œโ”€โ”€ reasoning/             # Reasoning capabilities
โ”œโ”€โ”€ eval/                  # Evaluation tools
โ”œโ”€โ”€ interface/             # Protocol definitions
โ”œโ”€โ”€ interfaces/            # Interface implementations
โ””โ”€โ”€ registry/              # Component registry

๐ŸŽ“ Use Cases

  1. Multi-Agent Systems: Build coordinated multi-agent workflows
  2. Complex Task Planning: Decompose tasks with hierarchical planning
  3. Adaptive Workflows: Dynamic workflow execution with reasoning
  4. Intent-Driven Systems: Classify and route based on user intent
  5. Research: Experiment with different planning strategies

๐Ÿ”— Integration with SAGE

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

# Standalone usage
from sage_libs.sage_agentic import ReActPlanner

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

Related Packages

๐Ÿ“– Documentation

๐Ÿค Contributing

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

๐Ÿ“„ License

MIT License - see LICENSE file for details.

๐Ÿ™ Acknowledgments

Part of the SAGE ecosystem for stream analytics and generative AI.

๐Ÿ“ง Contact


Part of the SAGE ecosystem - Stream Analytics for Generative AI Engines

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.2.tar.gz (359.7 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.2-py2.py3-none-any.whl (500.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for isage_agentic-0.1.0.2.tar.gz
Algorithm Hash digest
SHA256 afd1ed89397b6a8faa8b52408de22a718d6e34df0c182a727b8df5acc5ed757f
MD5 301e75bc2dacfa6338f99cfb998e469f
BLAKE2b-256 b685874aa68b7da19a9db9478a6e3dbaac113d7d6652e6654aa993aac2c8fc72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for isage_agentic-0.1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2ac0e40ba1a44d5dc4b6c6a6592a7405b15c8f45c7c24f49b19a6bfbf7edab97
MD5 503a3cd44db9f3067ce4e1e88c9e7efc
BLAKE2b-256 a22c7864ed806623be3f942ebfe26cd64f121aa5d9d6625759b282088a840258

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