@oh-my-pi/pi-agent-core 10.6.0 → 10.6.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/README.md +2 -2
- package/package.json +4 -4
- package/src/agent.ts +1 -1
- package/src/proxy.ts +1 -1
- package/src/types.ts +2 -2
package/README.md
CHANGED
|
@@ -133,7 +133,7 @@ const agent = new Agent({
|
|
|
133
133
|
// Initial state
|
|
134
134
|
initialState: {
|
|
135
135
|
systemPrompt: string,
|
|
136
|
-
model: Model
|
|
136
|
+
model: Model,
|
|
137
137
|
thinkingLevel: "off" | "minimal" | "low" | "medium" | "high" | "xhigh",
|
|
138
138
|
tools: AgentTool<any>[],
|
|
139
139
|
messages: AgentMessage[],
|
|
@@ -164,7 +164,7 @@ const agent = new Agent({
|
|
|
164
164
|
```typescript
|
|
165
165
|
interface AgentState {
|
|
166
166
|
systemPrompt: string;
|
|
167
|
-
model: Model
|
|
167
|
+
model: Model;
|
|
168
168
|
thinkingLevel: ThinkingLevel;
|
|
169
169
|
tools: AgentTool<any>[];
|
|
170
170
|
messages: AgentMessage[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oh-my-pi/pi-agent-core",
|
|
3
|
-
"version": "10.6.
|
|
3
|
+
"version": "10.6.2",
|
|
4
4
|
"description": "General-purpose agent with transport abstraction, state management, and attachment support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"test": "bun test"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@oh-my-pi/pi-ai": "10.6.
|
|
28
|
-
"@oh-my-pi/pi-tui": "10.6.
|
|
29
|
-
"@oh-my-pi/pi-utils": "10.6.
|
|
27
|
+
"@oh-my-pi/pi-ai": "10.6.2",
|
|
28
|
+
"@oh-my-pi/pi-tui": "10.6.2",
|
|
29
|
+
"@oh-my-pi/pi-utils": "10.6.2"
|
|
30
30
|
},
|
|
31
31
|
"keywords": [
|
|
32
32
|
"ai",
|
package/src/agent.ts
CHANGED
package/src/proxy.ts
CHANGED
|
@@ -81,7 +81,7 @@ export interface ProxyStreamOptions extends SimpleStreamOptions {
|
|
|
81
81
|
* });
|
|
82
82
|
* ```
|
|
83
83
|
*/
|
|
84
|
-
export function streamProxy(model: Model
|
|
84
|
+
export function streamProxy(model: Model, context: Context, options: ProxyStreamOptions): ProxyMessageEventStream {
|
|
85
85
|
const stream = new ProxyMessageEventStream();
|
|
86
86
|
|
|
87
87
|
(async () => {
|
package/src/types.ts
CHANGED
|
@@ -20,7 +20,7 @@ export type StreamFn = (
|
|
|
20
20
|
* Configuration for the agent loop.
|
|
21
21
|
*/
|
|
22
22
|
export interface AgentLoopConfig extends SimpleStreamOptions {
|
|
23
|
-
model: Model
|
|
23
|
+
model: Model;
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* When to interrupt tool execution for steering messages.
|
|
@@ -155,7 +155,7 @@ export type AgentMessage = Message | CustomAgentMessages[keyof CustomAgentMessag
|
|
|
155
155
|
*/
|
|
156
156
|
export interface AgentState {
|
|
157
157
|
systemPrompt: string;
|
|
158
|
-
model: Model
|
|
158
|
+
model: Model;
|
|
159
159
|
thinkingLevel: ThinkingLevel;
|
|
160
160
|
tools: AgentTool<any>[];
|
|
161
161
|
messages: AgentMessage[]; // Can include attachments + custom message types
|