felo-ai 0.2.14 → 0.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Felo SuperAgent Skill for Claude Code
|
|
2
2
|
|
|
3
|
-
**AI
|
|
3
|
+
**AI 对话与流式输出,支持连续会话。**
|
|
4
4
|
|
|
5
|
-
通过 Felo Open Platform 的 SuperAgent API,在 Claude Code 中发起与 SuperAgent 的对话、接收 SSE
|
|
5
|
+
通过 Felo Open Platform 的 SuperAgent API,在 Claude Code 中发起与 SuperAgent 的对话、接收 SSE 流式回复,并可查询会话详情。
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
- 仅需单次实时信息检索 → 使用 `felo-search`
|
|
25
25
|
- 仅需抓取网页正文 → 使用 `felo-web-fetch`
|
|
26
26
|
- 仅需生成 PPT → 使用 `felo-slides`
|
|
27
|
+
- 需要 LiveDoc 知识库功能 → 使用 `felo-livedoc`
|
|
27
28
|
|
|
28
29
|
---
|
|
29
30
|
|
|
@@ -115,7 +116,7 @@ node felo-superAgent/scripts/run_superagent.mjs --query "What is the latest news
|
|
|
115
116
|
}
|
|
116
117
|
```
|
|
117
118
|
|
|
118
|
-
可用 `thread_short_id`
|
|
119
|
+
可用 `thread_short_id` 调用「查询会话详情」接口,`live_doc_short_id` 可传入 `felo-livedoc` 查询相关资源。
|
|
119
120
|
|
|
120
121
|
---
|
|
121
122
|
|
package/felo-superAgent/SKILL.md
CHANGED
|
@@ -10,9 +10,9 @@ description: "Felo SuperAgent API: AI conversation with real-time SSE streaming
|
|
|
10
10
|
Trigger this skill for:
|
|
11
11
|
|
|
12
12
|
- **SuperAgent 对话**:需要与 Felo SuperAgent 进行 AI 对话、流式输出
|
|
13
|
-
- **LiveDoc
|
|
14
|
-
-
|
|
15
|
-
- **多轮对话**:需要 thread_short_id / live_doc_short_id
|
|
13
|
+
- **LiveDoc 关联**:每次会话对应一个 LiveDoc,可后续查看资源
|
|
14
|
+
- **连续对话**:在已有 LiveDoc 上继续提问(传入 `live_doc_short_id`)
|
|
15
|
+
- **多轮对话**:需要 thread_short_id / live_doc_short_id 以便后续查询会话详情
|
|
16
16
|
|
|
17
17
|
**Trigger words / 触发词:**
|
|
18
18
|
|
|
@@ -25,6 +25,7 @@ Trigger this skill for:
|
|
|
25
25
|
- 简单单次问答、实时信息查询(优先用 `felo-search`)
|
|
26
26
|
- 仅需抓取网页内容(用 `felo-web-fetch`)
|
|
27
27
|
- 仅需生成 PPT(用 `felo-slides`)
|
|
28
|
+
- 需要 LiveDoc 知识库功能(用 `felo-livedoc`)
|
|
28
29
|
|
|
29
30
|
## Setup
|
|
30
31
|
|
|
@@ -83,8 +84,8 @@ node felo-superAgent/scripts/run_superagent.mjs \
|
|
|
83
84
|
|
|
84
85
|
Optional:
|
|
85
86
|
|
|
86
|
-
- **Reuse LiveDoc (连续对话):** `--live-doc-id "PvyKouzJirXjFdst4uKRK3"`
|
|
87
87
|
- **Language:** `--accept-language zh` or `--accept-language en`
|
|
88
|
+
- **Reuse LiveDoc (连续对话):** `--live-doc-id "PvyKouzJirXjFdst4uKRK3"`
|
|
88
89
|
- **JSON output:** `--json` (includes thread_short_id, live_doc_short_id, full answer)
|
|
89
90
|
- **Verbose:** `--verbose` (logs stream connection to stderr)
|
|
90
91
|
|
|
@@ -123,8 +124,6 @@ If the user asked for conversation detail or LiveDoc resources, you can call the
|
|
|
123
124
|
1. **POST** `/v2/conversations` → get `stream_key`, `thread_short_id`, `live_doc_short_id`
|
|
124
125
|
2. **GET** `/v2/conversations/stream/{stream_key}` → consume SSE until `done` or `error`
|
|
125
126
|
3. Optionally: **GET** `/v2/conversations/{thread_short_id}` → conversation detail
|
|
126
|
-
4. Optionally: **GET** `/v2/livedocs` → list LiveDocs
|
|
127
|
-
5. Optionally: **GET** `/v2/livedocs/{live_doc_short_id}/resources` → list resources
|
|
128
127
|
|
|
129
128
|
Base URL: `https://openapi.felo.ai` (override with `FELO_API_BASE` if needed).
|
|
130
129
|
|
|
@@ -135,8 +134,6 @@ Base URL: `https://openapi.felo.ai` (override with `FELO_API_BASE` if needed).
|
|
|
135
134
|
| INVALID_API_KEY | 401 | API Key 无效或已撤销 |
|
|
136
135
|
| SUPER_AGENT_CONVERSATION_CREATE_FAILED | 502 | 创建会话失败(下游错误) |
|
|
137
136
|
| SUPER_AGENT_CONVERSATION_QUERY_FAILED | 502 | 查询会话详情失败 |
|
|
138
|
-
| SUPER_AGENT_LIVEDOC_LIST_FAILED | 502 | 列举 LiveDocs 失败 |
|
|
139
|
-
| SUPER_AGENT_LIVEDOC_RESOURCES_FAILED | 502 | 列举 LiveDoc 资源失败 |
|
|
140
137
|
|
|
141
138
|
SSE stream may send:
|
|
142
139
|
|
package/package.json
CHANGED