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
🎯 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
- Multi-Agent Systems: Build coordinated multi-agent workflows
- Tool-Augmented LLMs: Select and use external tools intelligently
- Hierarchical Planning: Decompose complex tasks into subtasks
- Adaptive Systems: Use SIAS for intelligent sample selection
- 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
- 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
Originally part of the SAGE framework, now maintained as an independent package for broader community use.
📧 Contact
- Team: IntelliStream Team
- Email: shuhao_zhang@hust.edu.cn
- GitHub: https://github.com/intellistream
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 Distribution
Built Distributions
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.5.tar.gz.
File metadata
- Download URL: isage_agentic-0.1.0.5.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b81925266bfd8f36fe509f4eea61b06f562a94411167b07b0014db314a74cf9c
|
|
| MD5 |
5c6a3837ddbdcac008e2b41757069f9a
|
|
| BLAKE2b-256 |
57b628470caa30128e8da2b184e33db898839b0e91bdf8ded9e8e7ced8495c81
|
File details
Details for the file isage_agentic-0.1.0.5-py3-none-any.whl.
File metadata
- Download URL: isage_agentic-0.1.0.5-py3-none-any.whl
- Upload date:
- Size: 302.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e617302af297d242b26ad66a936749baaf57225c337841af3aa9a9b720a0ab3
|
|
| MD5 |
ea9e018e7d6c6dab469073feb656f0e5
|
|
| BLAKE2b-256 |
16af112e692cad43a0cebafef5d490afa4a4226121966444a95b4d4d2dc5f6a1
|
File details
Details for the file isage_agentic-0.1.0.5-py2.py3-none-any.whl.
File metadata
- Download URL: isage_agentic-0.1.0.5-py2.py3-none-any.whl
- Upload date:
- Size: 155.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f137c9c597d7d4635522c1e9ef19b07e7f14cf44fece2903f095c8472ac33df
|
|
| MD5 |
1abfb30bec4e0fcd64e012f35be8534d
|
|
| BLAKE2b-256 |
97bc3d521c0e2170bbe42101b8b194857b9d0cd8cd4246d7cd79cfcf731278b5
|