@agi-cli/sdk 0.1.43 → 0.1.45

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agi-cli/sdk",
3
- "version": "0.1.43",
3
+ "version": "0.1.45",
4
4
  "description": "AI agent SDK for building intelligent assistants",
5
5
  "author": "ntishxyz",
6
6
  "license": "MIT",
@@ -4,10 +4,8 @@ import DESCRIPTION from './finish.txt' with { type: 'text' };
4
4
 
5
5
  export const finishTool = tool({
6
6
  description: DESCRIPTION,
7
- inputSchema: z.object({
8
- text: z.string().optional().describe('Optional final message to return'),
9
- }),
10
- async execute({ text }: { text?: string }) {
11
- return { done: true, text } as const;
7
+ inputSchema: z.object({}),
8
+ async execute() {
9
+ return { done: true } as const;
12
10
  },
13
11
  });
@@ -1,5 +1,5 @@
1
1
  - Signal that the task is complete
2
- - Optionally include a final `text` message to present to the user
2
+ - Agent should stream the summary directly as assistant message not using the finish tool
3
3
 
4
4
  Usage tips:
5
5
  - Ensure all necessary outputs are already saved/emitted before finishing