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.3.tar.gz (120.3 kB view details)

Uploaded Source

Built Distributions

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

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

Uploaded Python 2Python 3

isage_agentic-0.1.0.3-cp311-none-any.whl (149.8 kB view details)

Uploaded CPython 3.11

File details

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

File metadata

  • Download URL: isage_agentic-0.1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 39cbd520929983f48874d5640a84dd5bb6a680b442990ccf10204498eaa90f1a
MD5 f5580afe7fd3cbd6b2ddef64042898f8
BLAKE2b-256 550a53a065a91e5b7f3f35e0aa8a6dc48327af0e84a9aaa958f4a4f8fa2a4305

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for isage_agentic-0.1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1d49d19b3ef5e904fd4f3bcf8596eebe2d0a07c52b909051df167fc8ff042e56
MD5 56de3b92b537bb5c21b5fd79305203cd
BLAKE2b-256 930c5021935bebd40f5b29a13b2fc217271e84040ad4a695b4ae37e2d8cc8ce8

See more details on using hashes here.

File details

Details for the file isage_agentic-0.1.0.3-cp311-none-any.whl.

File metadata

File hashes

Hashes for isage_agentic-0.1.0.3-cp311-none-any.whl
Algorithm Hash digest
SHA256 96c5bbcac45b1e87df48f87a059ffa81b3076fc817540f0508bda0cd925a5721
MD5 cc719baf317fa92aa452abca42ba894f
BLAKE2b-256 865838818764e86b7bbe9443879d709770ce1e623a7995df59da58584e6b0c86

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