mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-16 18:25:17 +02:00
allow copilot to delete things, set start agent
This commit is contained in:
parent
d2e590956b
commit
aef3771cd5
5 changed files with 156 additions and 22 deletions
|
|
@ -990,4 +990,92 @@ This workflow is now ready. Once you apply the changes, it will automatically ha
|
|||
|
||||
---
|
||||
|
||||
### Example 7: Setting the start agent
|
||||
|
||||
**User Request**
|
||||
Can you set the start agent to the Meeting Prep Hub?
|
||||
|
||||
**Copilot Response**
|
||||
|
||||
Yes, I can set the start agent to the Meeting Prep Hub.
|
||||
|
||||
\`\`\`copilot_change
|
||||
|
||||
// action: edit
|
||||
// config_type: start_agent
|
||||
// name: Meeting Prep Hub
|
||||
{
|
||||
"change_description": "Set the start agent to the Meeting Prep Hub.",
|
||||
"config_changes": {},
|
||||
}
|
||||
\`\`\`
|
||||
|
||||
|
||||
---
|
||||
|
||||
### Example 8: Delete an agent
|
||||
|
||||
**User Request:**
|
||||
Can you delete the Slack Send Agent?
|
||||
|
||||
**Copilot Response:**
|
||||
|
||||
Yes, I can delete the Slack Send Agent.
|
||||
|
||||
\`\`\`copilot_change
|
||||
// action: delete
|
||||
// config_type: agent
|
||||
// name: Slack Send Agent
|
||||
{
|
||||
"change_description": "Delete the Slack Send Agent.",
|
||||
"config_changes": {},
|
||||
}
|
||||
}
|
||||
\`\`\`
|
||||
|
||||
---
|
||||
|
||||
### Example 9: Delete a tool
|
||||
|
||||
**User Request:**
|
||||
Can you delete the Search tool?
|
||||
|
||||
**Copilot Response:**
|
||||
|
||||
Yes, I can delete the Search tool.
|
||||
|
||||
|
||||
\`\`\`copilot_change
|
||||
// action: delete
|
||||
// config_type: tool
|
||||
// name: Search
|
||||
{
|
||||
"change_description": "Delete the Search tool.",
|
||||
"config_changes": {},
|
||||
}
|
||||
\`\`\`
|
||||
|
||||
---
|
||||
|
||||
### Example 10: Delete a pipeline
|
||||
|
||||
**User Request:**
|
||||
Can you delete the Meeting Prep Pipeline?
|
||||
|
||||
**Copilot Response:**
|
||||
|
||||
Yes, I can delete the Meeting Prep Pipeline.
|
||||
|
||||
\`\`\`copilot_change
|
||||
// action: delete
|
||||
// config_type: pipeline
|
||||
// name: Meeting Prep Pipeline
|
||||
{
|
||||
"change_description": "Delete the Meeting Prep Pipeline.",
|
||||
"config_changes": {},
|
||||
}
|
||||
\`\`\`
|
||||
|
||||
---
|
||||
|
||||
`;
|
||||
|
|
@ -21,8 +21,8 @@ export const CopilotAssistantMessageTextPart = z.object({
|
|||
export const CopilotAssistantMessageActionPart = z.object({
|
||||
type: z.literal("action"),
|
||||
content: z.object({
|
||||
config_type: z.union([z.literal('tool'), z.literal('agent'), z.literal('prompt'), z.literal('pipeline')]),
|
||||
action: z.union([z.literal('create_new'), z.literal('edit')]),
|
||||
config_type: z.enum(['tool', 'agent', 'prompt', 'pipeline', 'start_agent']),
|
||||
action: z.enum(['create_new', 'edit', 'delete']),
|
||||
name: z.string(),
|
||||
change_description: z.string(),
|
||||
config_changes: z.record(z.string(), z.unknown()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue