Open-source SDK for LLM-first intent parsing, taxonomy mapping, extraction, and public-data matching pipelines
Project description
NEOXLINK-SDK
Bridging the gap between Chat and Transaction — turn fuzzy natural language into Standardized Business Intelligence and executable procurement workflows.
Vision: NEOXLINK-SDK is the operating system for AI commercialization. It closes the last mile between “the model understood the request” and “the business system can act on it” by normalizing intent with the UNSPSC global standard (Code + Name), Structured Preview, human or agent confirmation, durable structured records, and AI Resolve (direct answers or real supply-chain handoff). Agent Interoperability is first-class: integrate directly, run inside Skill runtimes, or expose capabilities via MCP (Model Context Protocol) tools.
中文文档 README_zh.md · UNSPSC 快速查阅(同仓) · MCP 集成说明
System architecture (chat → transaction)
High-level data path from natural language to standardized, actionable records. (Diagram is a logical view; your deployment may split API, matching, and MCP host.)
flowchart LR
subgraph input [NL_input]
U[User_or_Agent]
end
subgraph sdk [NEOXLINK_SDK]
P[Parse_and_Structured_Preview]
C[Confirm_or_policy_gate]
S[Structured_record]
M[Match_or_resolve]
end
subgraph standard [Business_standard]
UNS[UNSPSC_Code_plus_Name]
end
U --> P
P --> UNS
P --> C
C --> S
S --> M
M --> U
For the maintained layering diagram (HTTP client vs local UNSPSC catalog vs orchestration), see docs/wiki/repository-layout.md — it is versioned with the repo and mirrors what CI tests against.
The gap (and how we close it)
Classic chat AI stops at paraphrasing needs. Enterprise procurement, trading, and compliance systems speak codes, constraints, and structured intents — not paragraphs. NEOXLINK-SDK translates messy language into structured business instructions aligned to UNSPSC, then supports Supply-Demand Matching on the same normalized axis.
| Dimension | Traditional AI chat | NEOXLINK-SDK |
|---|---|---|
| Output | Free-form text | Structured Preview + typed payloads |
| Taxonomy | Ad-hoc labels | UNSPSC (Code + Name) normalization |
| Transaction readiness | Low | Parse → confirm → structured DB → resolve / match |
| Agent integration | Ad-hoc prompts | Skill adapters + MCP tool surface |
| Matching | Semantic vibes only | Supply-Demand Matching with explicit signals |
Features
- UNSPSC-first taxonomy — consistent Code + Name for demand and supply.
- Structured Preview — LLM-refined structure before anything is committed.
- Human / agent confirmation — overrides and policy gates before persistence.
- Structured persistence — records land in a structured pipeline ready for operators.
- AI Resolve — AI-direct answers or routing toward real fulfillment.
- Supply-Demand Matching — staged
ProcurementIntentEnginewith pluggable data and ranking. - Agent Interoperability —
NeoxlinkSkill,NeoxlinkMCPAdapter, and chain-style orchestration. - MCP tool exposure — stable tool names such as
neoxlink.parse_previewandneoxlink.confirmed_submit.
Core flow
- Natural language in — buyer, seller, or agent describes the need in plain language.
- LLM Structured Preview — intent is refined into a preview (including UNSPSC where applicable).
- User / agent confirm — approve or edit; business truth is explicit.
- Structured database — confirmed record is stored for downstream systems.
- AI Resolve — answer, escalate, or connect to real supply / fulfillment.
Quick start
Install
pip install neoxlink
# or, from this repo:
pip install -e .
Minimal Python: SDK + Structured Preview
from neoxlink import SDK
sdk = SDK(
base_url="https://neoxailink.com",
api_key="ak_live_xxx", # your NeoXlink API key
)
draft = sdk.parse_preview(
"We need urgent packaging compliance consulting for EU retail launch.",
entry_kind="demand",
)
print(draft.preview.unspsc.code, draft.preview.unspsc.name)
Advanced integrations use
neoxlink_sdkdirectly (NeoXlinkClient,StructuredSubmissionPipeline,ProcurementIntentEngine,NeoxlinkMCPAdapter). Seeexamples/and the sections below.
Run a local example
pip install -e .
python examples/04_procurement_intent_engine.py
MCP (Model Context Protocol) stdio server
pip install 'neoxlink[mcp]'
export NEOXLINK_API_KEY=your_key
neoxlink-mcp
Point your MCP host (Claude Desktop, Cursor, etc.) at the neoxlink-mcp command, or use the config template in mcp/config.neoxlink.example.json. Optional: NEOXLINK_ENABLE_MATCH=1 to expose neoxlink.match_intent (local matching pipeline; supply your own data source in custom deployments).
Use cases
- Global procurement & sourcing — standardize requisitions and supplier catalogs across regions using UNSPSC.
- Cross-border trade — align multilingual requests with a single commodity and service taxonomy for RFQs and compliance.
- B2B marketplaces & ERP handoff — turn conversational intake into records that downstream systems can ingest.
- Agent products — ship MCP tools or Skill contracts without reinventing procurement ontology.
- Supply-Demand Matching — rank partners with transparent scoring on top of normalized intent.
Architecture highlights (v0.6)
| Module | Role |
|---|---|
neoxlink_sdk.client.NeoXlinkClient |
HTTP client: parse_entry, confirm_entry, resolve_entry, structured_submit. |
neoxlink_sdk.pipeline.StructuredSubmissionPipeline |
Parse → confirm → resolve orchestration (ParseDraft, ConfirmedEntry, ResolveResult). |
neoxlink_sdk.engine.ProcurementIntentEngine |
Staged matching: intent → UNSPSC → clarification → retrieval → ranking. |
neoxlink_sdk.skill.NeoxlinkSkill |
Skill-runtime adapter (preview vs auto-confirm). |
neoxlink_sdk.mcp.NeoxlinkMCPAdapter |
MCP-friendly tool facade for Agent Interoperability. |
neoxlink_sdk.credits |
Credit / BYOM metering for metered clients. |
neoxlink_sdk.plugins.PluginRegistry |
Register model adapters, data sources, ranking strategies. |
The in-repo wiki also documents on-disk layout, HTTP vs UNSPSC layers, and running tests (Python 3.11+). Open-source “module one–eight” design remains in REPOSITORY_ARCHITECTURE.md.
Open-source community layout
Governance & scope
- OPEN_SOURCE_SCOPE.md
- REPOSITORY_ARCHITECTURE.md
- CONTRIBUTOR_WORKFLOW.md
- DATA_COLLABORATION_GUIDELINES.md
- PROMPT_COLLABORATION.md
- GOVERNANCE.md
Extended examples
examples/01_structured_pipeline.py— parse / confirm / resolveexamples/02_skill_runtime.py— Skill runtimeexamples/03_chain_style.py— chain-style invocationexamples/04_procurement_intent_engine.py— UNSPSC matching engineexamples/05_credits_and_byom.py— credits & BYOMexamples/06_plugin_registry.py— pluginsexamples/07_open_source_pipeline.py— open-source reference pipelineexamples/08_startup_policy_realworld.py— interactive advisorexamples/model_apis/— OpenAI, Anthropic, Gemini, Ollama, routerneoxlink-mcp+mcp/config.neoxlink.example.json— MCP stdio server for agent hosts
Optional extras for model examples:
pip install -e ".[model_examples]"
Local development
This package targets Python 3.11+ (requires-python in pyproject.toml). Run the test suite with a 3.11+ interpreter (system python3 on some macOS installs is 3.9 and will not load the type annotations used in the code):
python3.11 -m venv .venv
.venv/bin/pip install -e ".[dev]"
.venv/bin/python -m pytest
Community
License
MIT
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 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 neoxlink-0.6.2.tar.gz.
File metadata
- Download URL: neoxlink-0.6.2.tar.gz
- Upload date:
- Size: 40.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
025d82017e6341542d6161d3b889e4711fe07c623a10902d7d890c5e822024bb
|
|
| MD5 |
d2e0938b9a03617b56aa845cc5ff5b01
|
|
| BLAKE2b-256 |
1fc1134c08ac7ea8653076dc2f2230a37b190df0d632bdfc8339271ec1192b75
|
File details
Details for the file neoxlink-0.6.2-py3-none-any.whl.
File metadata
- Download URL: neoxlink-0.6.2-py3-none-any.whl
- Upload date:
- Size: 47.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4185e97d16c5a0ffe74de58fe8c474450dfae3236b35d1189635869f2755fef
|
|
| MD5 |
60b7360f27ce0f2cc0398de96861f9be
|
|
| BLAKE2b-256 |
ce3580d72d7594ba985fcf9dd64e256cbf57fcd8b56b4c408be08baa5c551094
|