usage

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

本示例演示如何在自己的 Go 服务中进程内使用 omnix(DeepSeek Agent 能力 SDK)。

覆盖核心能力:

  1. 事件溯源会话(pkg/session):append 事件 + fold 派生投影(消息/目标/待办/计划);
  2. 规划能力:Goal 工具集(goal.NewGoalToolset)+ slash 命令(pkg/commands);
  3. LLM Provider(pkg/llm/provider_deepseek):构造 DeepSeek 适配器 + 观察连接池, 及官方对齐的失败分类(llm.ClassifyProviderDetail / NewProviderFailure);
  4. 持久化(pkg/persistence/jsonl):落盘 / 读回。

运行方式(在仓库根目录):

go run ./examples/usage

说明:示例为自包含内存态,不发起真实 LLM 网络调用;接入真实 API Key 时把 DEEPSEEK_API_KEY 换成你的密钥并调用 provider 的 Chat 即可。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL