@oh-my-pi/pi-agent-core 1.341.0 → 2.1.1337
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/package.json +3 -3
- package/src/agent-loop.ts +1 -1
- package/src/agent.ts +2 -2
- package/src/index.ts +4 -4
- package/src/types.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oh-my-pi/pi-agent-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.1337",
|
|
4
4
|
"description": "General-purpose agent with transport abstraction, state management, and attachment support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"test": "vitest --run"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@oh-my-pi/pi-ai": "
|
|
17
|
-
"@oh-my-pi/pi-tui": "
|
|
16
|
+
"@oh-my-pi/pi-ai": "1.5.0",
|
|
17
|
+
"@oh-my-pi/pi-tui": "1.5.0"
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
20
20
|
"ai",
|
package/src/agent-loop.ts
CHANGED
package/src/agent.ts
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
streamSimple,
|
|
13
13
|
type TextContent,
|
|
14
14
|
} from "@oh-my-pi/pi-ai";
|
|
15
|
-
import { agentLoop, agentLoopContinue } from "./agent-loop
|
|
15
|
+
import { agentLoop, agentLoopContinue } from "./agent-loop";
|
|
16
16
|
import type {
|
|
17
17
|
AgentContext,
|
|
18
18
|
AgentEvent,
|
|
@@ -23,7 +23,7 @@ import type {
|
|
|
23
23
|
AgentToolContext,
|
|
24
24
|
StreamFn,
|
|
25
25
|
ThinkingLevel,
|
|
26
|
-
} from "./types
|
|
26
|
+
} from "./types";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* Default convertToLlm: Keep only LLM-compatible messages, convert attachments.
|
package/src/index.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Core Agent
|
|
2
|
-
export * from "./agent
|
|
2
|
+
export * from "./agent";
|
|
3
3
|
// Loop functions
|
|
4
|
-
export * from "./agent-loop
|
|
4
|
+
export * from "./agent-loop";
|
|
5
5
|
// Proxy utilities
|
|
6
|
-
export * from "./proxy
|
|
6
|
+
export * from "./proxy";
|
|
7
7
|
// Types
|
|
8
|
-
export * from "./types
|
|
8
|
+
export * from "./types";
|
package/src/types.ts
CHANGED
|
@@ -174,6 +174,8 @@ export interface AgentTool<TParameters extends TSchema = TSchema, TDetails = any
|
|
|
174
174
|
extends Tool<TParameters> {
|
|
175
175
|
// A human-readable label for the tool to be displayed in UI
|
|
176
176
|
label: string;
|
|
177
|
+
/** If true, tool is excluded unless explicitly listed in --tools or agent's tools field */
|
|
178
|
+
hidden?: boolean;
|
|
177
179
|
execute: (
|
|
178
180
|
toolCallId: string,
|
|
179
181
|
params: Static<TParameters>,
|