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
๐ข Note: Tool selection algorithms have been moved to
sage-agentic-toolusefor 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:
- Repository: https://github.com/intellistream/sage-agentic-tooluse
- Install:
pip install isage-agentic-tooluse - Import:
from sage_libs.sage_agentic_tooluse import ...
# 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
- Multi-Agent Systems: Build coordinated multi-agent workflows
- Complex Task Planning: Decompose tasks with hierarchical planning
- Adaptive Workflows: Dynamic workflow execution with reasoning
- Intent-Driven Systems: Classify and route based on user intent
- 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
- sage-agentic-tooluse: Tool selection algorithms
- sage-agentic-tooluse-benchmark: Tool selection evaluation
๐ Documentation
- Repository: https://github.com/intellistream/sage-agentic
- SAGE Documentation: https://intellistream.github.io/SAGE-Pub/
- Issues: https://github.com/intellistream/sage-agentic/issues
๐ค 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
- Team: IntelliStream Team
- Email: shuhao_zhang@hust.edu.cn
- GitHub: https://github.com/intellistream
Part of the SAGE ecosystem - Stream Analytics for Generative AI Engines
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file isage_agentic-0.1.0.1-py3-none-any.whl.
File metadata
- Download URL: isage_agentic-0.1.0.1-py3-none-any.whl
- Upload date:
- Size: 588.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88b1cb1c2047f5dda1663e5dd1edb2ddb9615355d8fccf9505bef84637153a0b
|
|
| MD5 |
a63b6d5d3a895d3d4d5b21404058e37e
|
|
| BLAKE2b-256 |
8301237f1afa4e89a1e37a7ec2ef8f52176ef0bff468d18bb77274f122cc724a
|