@f5-sales-demo/pi-agent-core 19.51.2 → 19.51.4
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 +1 -1
- package/src/proxy.ts +3 -3
- package/src/thinking.ts +1 -1
- package/src/types.ts +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@f5-sales-demo/pi-agent-core",
|
|
4
|
-
"version": "19.51.
|
|
4
|
+
"version": "19.51.4",
|
|
5
5
|
"description": "General-purpose agent with transport abstraction, state management, and attachment support",
|
|
6
6
|
"homepage": "https://github.com/f5-sales-demo/xcsh",
|
|
7
7
|
"author": "Can Boluk",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"fmt": "biome format --write ."
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@f5-sales-demo/pi-ai": "
|
|
39
|
-
"@f5-sales-demo/pi-utils": "
|
|
38
|
+
"@f5-sales-demo/pi-ai": "19.51.4",
|
|
39
|
+
"@f5-sales-demo/pi-utils": "19.51.4"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@sinclair/typebox": "^0.34",
|
package/src/agent-loop.ts
CHANGED
package/src/agent.ts
CHANGED
package/src/proxy.ts
CHANGED
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
type SimpleStreamOptions,
|
|
12
12
|
type StopReason,
|
|
13
13
|
type ToolCall,
|
|
14
|
-
} from "@
|
|
15
|
-
import { parseStreamingJson } from "@
|
|
16
|
-
import { readSseJson } from "@
|
|
14
|
+
} from "@f5-sales-demo/pi-ai";
|
|
15
|
+
import { parseStreamingJson } from "@f5-sales-demo/pi-ai/utils/json-parse";
|
|
16
|
+
import { readSseJson } from "@f5-sales-demo/pi-utils";
|
|
17
17
|
|
|
18
18
|
// Create stream class matching ProxyMessageEventStream
|
|
19
19
|
class ProxyMessageEventStream extends EventStream<AssistantMessageEvent, AssistantMessage> {
|
package/src/thinking.ts
CHANGED
package/src/types.ts
CHANGED
|
@@ -12,7 +12,7 @@ import type {
|
|
|
12
12
|
Tool,
|
|
13
13
|
ToolChoice,
|
|
14
14
|
ToolResultMessage,
|
|
15
|
-
} from "@
|
|
15
|
+
} from "@f5-sales-demo/pi-ai";
|
|
16
16
|
import type { Static, TSchema } from "@sinclair/typebox";
|
|
17
17
|
|
|
18
18
|
/** Stream function - can return sync or Promise for async config lookup */
|
|
@@ -160,7 +160,7 @@ export interface ToolCallContext {
|
|
|
160
160
|
*
|
|
161
161
|
* @example
|
|
162
162
|
* ```typescript
|
|
163
|
-
* declare module "@
|
|
163
|
+
* declare module "@f5-sales-demo/agent" {
|
|
164
164
|
* interface CustomAgentMessages {
|
|
165
165
|
* artifact: ArtifactMessage;
|
|
166
166
|
* notification: NotificationMessage;
|