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。
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 lanscoder_core-1.3.0-py3-none-any.whl.
File metadata
- Download URL: lanscoder_core-1.3.0-py3-none-any.whl
- Upload date:
- Size: 346.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
910550e6dc0fe0d6e532cbf942a28bc53a036f0bb69005dfb403491a9af1d45b
|
|
| MD5 |
c1bffaf3867302036a2b393b3a14e538
|
|
| BLAKE2b-256 |
4625cedcae5899f3a802179efa9f38b2ba47913705ba1dc71c7ee206411a6a2d
|