sage-libs-intent
L3 intent recognition package for SAGE agentic workflows.
- PyPI:
isage-libs-intent - Import path:
sage_libs.sage_agentic.intent
Scope
This package only provides intent recognition logic and data structures.
KeywordIntentRecognizer: keyword and heuristic intent classificationLLMIntentRecognizer: LLM-based intent classificationselectormode: explicit integration withisage-agenticKeywordSelectorIntentClassifier: chain wrapper over recognizers- Intent catalog and typed intent/domain results
Boundary
- Intent package does not depend on tool-selection internals.
- Recognizer build path is explicit and deterministic.
- Package exports are explicit and fail-fast.
Recognizer Modes
keyword: built-in keyword and heuristic recognizerllm: LLM recognizer via OpenAI-compatible gatewayselector: explicit bridge toisage-agenticKeywordSelector
selector mode has no fallback behavior. If isage-agentic tool-selection modules are not available,
construction fails immediately with ModuleNotFoundError.
Installation
pip install isage-libs-intent
Quick Start
import asyncio
from sage_libs.sage_agentic.intent import IntentClassifier
async def main() -> None:
classifier = IntentClassifier(mode="keyword")
result = await classifier.classify("请帮我找一下 SAGE 的安装文档")
print(result.intent.value, result.confidence)
asyncio.run(main())
LLM Recognizer Example
import asyncio
from sage_libs.sage_agentic.intent import LLMIntentRecognizer, IntentRecognitionContext
async def main() -> None:
recognizer = LLMIntentRecognizer(control_plane_url="http://localhost:8080/v1")
result = await recognizer.classify(IntentRecognitionContext(message="Explain SAGE pipeline API"))
print(result.intent.value, result.confidence)
asyncio.run(main())
License
MIT
Metadata
Release files for isage-libs-intent 0.1.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| isage_libs_intent-0.1.0.10.tar.gz | 14.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| isage_libs_intent-0.1.0.10-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 32.6 kB
Release files / isage_libs_intent-0.1.0.10.tar.gz
| Download URL | isage_libs_intent-0.1.0.10.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
257d31dc5c524a5cb18ece1c1a883993eee39a2c789a9c4ace6429572206478e
|
|
BLAKE2b-256 checksum How to use checksums |
67e6fef53f8c93ece7f461cce6935afc1808c971246caf2f0a94c358e7b3f36a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / isage_libs_intent-0.1.0.10-py2.py3-none-any.whl
| Download URL | isage_libs_intent-0.1.0.10-py2.py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ef26473ecd3fe6ba882e688fd4be2271e9c3e0a08a3dfe658ac337bcdef54182
|
|
BLAKE2b-256 checksum How to use checksums |
4f661c96af2849bd5ac02c1bc00d0f9222549e23fa038fa83a187c744a03ffcf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|