Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

fix(agent): state in tool metadata that posts cannot be deleted

Gilad Resisi0321796ed474
diff --git a/libraries/nestjs-libraries/src/chat/load.tools.service.ts b/libraries/nestjs-libraries/src/chat/load.tools.service.ts
index 5e2e7c8be..b4e098f46 100644
--- a/libraries/nestjs-libraries/src/chat/load.tools.service.ts
+++ b/libraries/nestjs-libraries/src/chat/load.tools.service.ts
@@ -45,7 +45,7 @@ export class LoadToolsService {
return new Agent({
id: 'postiz',
name: 'postiz',
- description: 'Agent that helps manage and schedule social media posts for users',
+ description: 'Agent that helps schedule and list social media posts for users',
instructions: ({ requestContext }) => {
const ui: string = requestContext.get('ui' as never);
return `
diff --git a/libraries/nestjs-libraries/src/chat/tools/posts.list.tool.ts b/libraries/nestjs-libraries/src/chat/tools/posts.list.tool.ts
index 85049fccc..a22ed040f 100644
--- a/libraries/nestjs-libraries/src/chat/tools/posts.list.tool.ts
+++ b/libraries/nestjs-libraries/src/chat/tools/posts.list.tool.ts
@@ -39,6 +39,7 @@ List the organization's posts scheduled to be published between two dates (the s
Returns every post in the window whatever its state (scheduled, draft, published, errored).
"startDate" and "endDate" are required (UTC) - to list all upcoming posts, pass a wide window (for example from now to a year ahead).
Each item has an "id", its publish date, state, content, channel and current provider settings.
+Posts cannot be deleted through the Postiz tools - if the user wants to delete a post, tell them to do it themselves in the Postiz app; never offer to delete a post.
`,
inputSchema: z.object({
startDate: z