lanscoder-core
Headless SDK of LansCoder: L1 agent_loop、L2 Agent、L3 create_agent_session。无 TUI、最小依赖。
替代关系:
lanscoder-core与LansCoder共用同一 import 树(lanscoder),二者为替代关系,不要同时安装。TUI 应用用户装LansCoder;SDK 集成用户装lanscoder-core。
安装
pip install lanscoder-core
最小必装依赖:anyio / portalocker / PyYAML(无 textual / prompt_toolkit / tomlkit / python-dotenv)。
真实模型 / MCP 通过 extras 可选安装:
pip install "lanscoder-core[llm]" # openai + anthropic
pip install "lanscoder-core[mcp]" # mcp
使用
from lanscoder.core import create_agent_session
- L3
create_agent_session完整 headless 装配(provider + session + 工具 + context 管理器 + runner)。 - L2
Agent(subscribe / prompt / steer / follow_up / abort)与 L1agent_loop亦可直接使用。 - 传输协议
LlmTransport(2 方法 + 3 属性)可 duck-typing 接入,不需要openai/anthropic。
版本与 LansCoder 主包单一事实来源一致:lanscoder/core/_version.py。
Metadata
Release files for lanscoder-core 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lanscoder_core-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / lanscoder_core-1.3.0-py3-none-any.whl
| Download URL | lanscoder_core-1.3.0-py3-none-any.whl |
|---|---|
| Size | 346.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
910550e6dc0fe0d6e532cbf942a28bc53a036f0bb69005dfb403491a9af1d45b
|
|
BLAKE2b-256 checksum How to use checksums |
4625cedcae5899f3a802179efa9f38b2ba47913705ba1dc71c7ee206411a6a2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|