LinkSoul Agent SDK (Python v1.4.0)
LinkSoul Agent SDK (Python v1.4.0)
⚠️ v1.4.0 breaking auth change — NOT compatible with v1.3.0 or earlier
v1.4.0 standardises the AgentSDK signing scheme to align with the LinkSoul open-platform spec. Existing v1.3.0 (and earlier) clients cannot upgrade in place:
- Auth: JWT (one
AGIBOT_AUTHORIZATIONheader) → HMAC-SHA256 with five signed headers (X-App-Id/X-App-Key/X-Timestamp/X-Nonce/X-Signature)- Credentials: legacy custom-agent template → application on the LinkSoul open platform (issues a new
app_keyalongsideapp_id/app_secret)- Factory:
AgentSdk.create(url, app_id, app_secret)→AgentSdk.create(url, app_id, app_key, app_secret)- Gateway URL:
wss://agentsdk.agibot.com/v1/agentsdk→wss://open.agibot.com/api/V1/open-portal/app/wss/agent-sdkcallback_typesmoves out of the JWT payload into a standaloneX-Callback-Typesheader (JSON array string)Upgrading requires rotating credentials, switching the gateway URL, updating the
create()call, and rewriting any custom auth-header handling. See the CHANGELOG for the full migration path.
Connection info
| Item | Value |
|---|---|
| WebSocket URL | wss://open.agibot.com/api/V1/open-portal/app/wss/agent-sdk |
| appId | Obtained from the LinkSoul open platform when creating an application |
| appKey | Obtained from the LinkSoul open platform when creating an application |
| appSecret | Obtained from the LinkSoul open platform when creating an application (HMAC-SHA256 signing key) |
from linksoul_agentsdk import AgentSdk
agent_sdk = AgentSdk.create(
url="wss://open.agibot.com/api/V1/open-portal/app/wss/agent-sdk",
app_id=app_id,
app_key="<your appKey>",
app_secret=app_secret,
)
Quick navigation
| Document | Description |
|---|---|
| Quick Start | 5-minute setup, pip install + full integration code |
| Architecture | System architecture, threading model, reconnect |
| Passive Callbacks Guide | 8 passive callback types + response methods |
| Robot-side state modules | All 22 state_name modules received in on_state, field schemas + frequency conventions |
| Active Operations Guide | Task flow (v1.3.0 first opened the active surface but only task flow was ever functional; v1.4.0 removes the never-enabled entries — skill / state query, pull / push stream — and narrows the public API to task flow) |
| Task-flow payload protocol | Skill orchestration — action_group / action_type JSON reference + SIMPLE/COMPLEX examples |
| Semantic Skills | Full catalogue dispatched via response.on_skill or task flow |
| AgentSdk API | Main entry class full reference |
| Enums Reference | Every enum & value |
| Passive Callbacks API | Callback / Response signatures |
| Active Requests API | Task flow API |
| Passive Examples | Full passive-flow code |
| Active Examples | Full active-flow code |
| Troubleshooting & FAQ | Troubleshooting manual + FAQ (grows over time) |
| Glossary | Business / SDK / model / reject terminology reference |
| Changelog | Per-version changes |
Two interaction modes
LinkskyGatewayis the LinkSoul open-platform ingress gateway (wss://open.agibot.com/api/V1/open-portal/app/wss/agent-sdk); it relays bidirectional messages between the SDK and robots.
┌─────────────────────────────────────────────────────────┐
│ LinkSoul Platform │
├─────────────────────────────────────────────────────────┤
│ │
│ Robot ──Audio/Video/Text──→ LinkskyGateway ──→ SDK CB │ Passive
│ Robot ←──ASR/LLM/TTS────── LinkskyGateway ←── SDK Resp │
│ │
│ SDK Request ──→ LinkskyGateway ──→ Robot │ Active
│ SDK Result ←── LinkskyGateway ←── Robot │
│ │
└─────────────────────────────────────────────────────────┘
- Passive: robot initiates (audio/video/text) → SDK processes → returns ASR/LLM/VLM/TTS
- Active: SDK initiates → v1.3.0 first opened skill / state query, pull / push stream and task flow at the API level, but only task flow was ever functional; v1.4.0 removes those never-enabled entries and narrows the public surface to task flow
Distribution downloads
Direct downloads for offline / air-gapped integration:
| File | Kind | Size |
|---|---|---|
linksoul_agentsdk-1.4.0a0-py3-none-any.whl | wheel (recommended) | 36 KB |
linksoul_agentsdk-1.4.0a0.tar.gz | sdist (source distribution) | 33 KB |
# install the wheel
pip install ./linksoul_agentsdk-1.4.0a0-py3-none-any.whl
# or install from sdist
pip install ./linksoul_agentsdk-1.4.0a0.tar.gz
websocket-client>=1.7.0 is pulled in automatically (declared in the wheel METADATA). The 1.4.0a0 version string is the PEP 440 alpha pre-release identifier and is aligned with the Java SDK's 1.4.0-SNAPSHOT. See Quick Start for the detailed install flow.