Skip to content

API 参考 ​

字数
339 字
阅读时间
2 分钟

TIP

API 参考分三部分:插件直接调用的核心服务(ctx.*),Cordis 的上下文、事件与 Schema,以及命令行、配置和 HTTP 接口。

核心服务 ​

服务提供方作用
ctx.conversations@chatluna/conversations会话键 → 活跃会话索引、fork/history
ctx.sessions@chatluna/sessionappend-only 会话日志
ctx.agents@chatluna/agentAgent 注册与运行时
ctx.ai@chatluna/ai-runtime模型运行时、provider 注册
ctx.chatluna@chatluna/core动词挂载面(ask/chat/…)
ctx.chatluna_providers@chatluna/provider-registry提供商 recipe 目录
ctx.tools@chatluna/tool工具注册与执行管线
ctx.skills@chatluna/skill技能目录与加载
ctx.mcp@chatluna/mcpMCP 服务器管理
ctx.subagents@chatluna/subagent子代理后端与委派
ctx.computer@chatluna/computer机器与工作区
ctx.prompt@chatluna/prompt提示词分区
ctx.presets@chatluna/preset预设管理
ctx.permissions@chatluna/permission权限判定
ctx.memory@chatluna/memory长期记忆
ctx.schedule@chatluna/schedule定时任务
ctx.background@chatluna/background后台任务
ctx.trace@chatluna/trace轨迹 span
ctx.telemetry@chatluna/telemetry用量统计
ctx.routing@chatluna/routing场景规则
ctx.chatluna_adapters@chatluna/adapter-webui平台适配器目录
ctx.chat@chatluna/chat消息管线
ctx.koishikoishi(打过补丁的 @koishijs/core)Koishi 兼容层:命令、中间件与过滤器

Cordis 上下文 ​

Context · Events · Service · Schema

其他参考 ​

命令行 · 配置与数据目录 · HTTP API · 术语表

在 CC-BY-SA-4.0 许可下发布