Skip to main content

lanscoder-core

Headless SDK of LansCoder: L1 agent_loop、L2 Agent、L3 create_agent_session。无 TUI、最小依赖。

替代关系:lanscoder-coreLansCoder 共用同一 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)与 L1 agent_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

If you're not sure about the file name format, learn more about wheel file names.

lanscoder_core-1.3.0-py3-none-any.whl (346.6 kB view details)

Uploaded Python 3

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

Hashes for lanscoder_core-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 910550e6dc0fe0d6e532cbf942a28bc53a036f0bb69005dfb403491a9af1d45b
MD5 c1bffaf3867302036a2b393b3a14e538
BLAKE2b-256 4625cedcae5899f3a802179efa9f38b2ba47913705ba1dc71c7ee206411a6a2d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.3.0 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page