We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 302e582 commit 8754dd2Copy full SHA for 8754dd2
1 file changed
src/tools/helpers.ts
@@ -3,7 +3,7 @@ import { z } from 'zod';
3
import zodToJsonSchema from 'zod-to-json-schema';
4
5
import { HelperTools } from '../const.js';
6
-import type { ActorTool, InternalTool, ToolEntry } from '../types';
+import type { InternalTool, ToolEntry } from '../types';
7
import { getActorsAsTools } from './actor.js';
8
import { actorNameToToolName } from './utils.js';
9
@@ -86,7 +86,11 @@ export const addTool: ToolEntry = {
86
return {
87
content: [{
88
type: 'text',
89
- text: `Actor added: ${toolsAdded.map((t) => `${(t.tool as ActorTool).actorFullName} (tool name: ${t.tool.name})`).join(', ')}`,
+ text: `Actor ${parsed.actorName} has been added. Newly available tools: ${
90
+ toolsAdded.map(
91
+ (t) => `${t.tool.name}`,
92
+ ).join(', ')
93
+ }.`,
94
}],
95
};
96
},
0 commit comments