knight-agent 1.2.0 → 1.2.2
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.
- package/base/AbstractAgent.d.ts +2 -2
- package/base/AbstractLLM.d.ts +0 -2
- package/docs/architecture-manual.md +978 -0
- package/index.js +1 -1
- package/module/AgentModule/Agent.d.ts +2 -2
- package/package.json +1 -1
- package/readme.md +9 -9
- package/utility/AgentUtility.d.ts +49 -5
- package/utility/LLMUtility.d.ts +0 -11
package/base/AbstractAgent.d.ts
CHANGED
|
@@ -8,11 +8,11 @@ export declare abstract class AbstractAgent extends AbstractObject {
|
|
|
8
8
|
/** 创建时间戳 */
|
|
9
9
|
readonly createdAt: number;
|
|
10
10
|
/** 对话记录 */
|
|
11
|
-
readonly turns: AgentUtility.
|
|
11
|
+
readonly turns: AgentUtility.Turns;
|
|
12
12
|
/** 是否活跃 */
|
|
13
13
|
private _active;
|
|
14
14
|
/** 构造函数 */
|
|
15
|
-
constructor(config: LLMUtility.Config
|
|
15
|
+
constructor(config: LLMUtility.Config);
|
|
16
16
|
/** 是否活跃 */
|
|
17
17
|
get active(): boolean;
|
|
18
18
|
/** 对话轮数 */
|
package/base/AbstractLLM.d.ts
CHANGED
|
@@ -17,8 +17,6 @@ export declare abstract class AbstractLLM<T extends LLMUtility.Config = LLMUtili
|
|
|
17
17
|
* @return 响应数据
|
|
18
18
|
*/
|
|
19
19
|
send(prompt: string, tools?: Array<LLMUtility.ToolDefinition>, onUsage?: LLMUtility.UsageCallback, onChunk?: LLMUtility.StreamCallback): Promise<LLMUtility.Response>;
|
|
20
|
-
/** 导出快照 — 序列化消息缓存与配置 */
|
|
21
|
-
exportSnapshot(): LLMUtility.Snapshot;
|
|
22
20
|
/** 添加系统消息到缓存 */
|
|
23
21
|
protected abstract addSystemMessage(text: string): void;
|
|
24
22
|
/** 添加用户消息到缓存 */
|