Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 88 additions & 0 deletions apps/sim/lib/copilot/generated/tool-catalog-v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2354,6 +2354,22 @@ export const KnowledgeBase: ToolCatalogEntry = {
description: 'Document IDs (for batch delete_document)',
items: { type: 'string' },
},
documentTags: {
type: 'array',
description:
'Tag values to persist on a document (optional for update_document). Use tag display names from list_tags.',
items: {
type: 'object',
properties: {
tagName: {
type: 'string',
description: 'Tag display name as returned by list_tags',
},
value: { type: ['string', 'number', 'boolean'], description: 'Typed tag value' },
},
required: ['tagName', 'value'],
},
},
enabled: {
type: 'boolean',
description: 'Enable/disable a document (optional for update_document)',
Expand Down Expand Up @@ -2409,6 +2425,42 @@ export const KnowledgeBase: ToolCatalogEntry = {
'Field type: text, number, date, boolean (optional for create_tag, defaults to text)',
enum: ['text', 'number', 'date', 'boolean'],
},
tagFilters: {
type: 'array',
description: 'Tag filters applied to the query. Use tag display names from list_tags.',
items: {
type: 'object',
properties: {
operator: {
type: 'string',
description: 'Comparison operator (defaults to eq)',
enum: [
'eq',
'neq',
'contains',
'not_contains',
'starts_with',
'ends_with',
'gt',
'gte',
'lt',
'lte',
'between',
],
},
tagName: {
type: 'string',
description: 'Tag display name as returned by list_tags',
},
tagValue: { type: ['string', 'number', 'boolean'], description: 'Typed tag value' },
valueTo: {
type: ['string', 'number'],
description: 'Upper bound required by the between operator',
},
},
required: ['tagName', 'tagValue'],
},
},
topK: {
type: 'number',
description: 'Number of results to return (1-50, default: 5)',
Expand Down Expand Up @@ -3719,6 +3771,42 @@ export const SearchKnowledgeBase: ToolCatalogEntry = {
description: 'Knowledge base ID (required for all operations)',
},
query: { type: 'string', description: "Search query text (required for 'query')" },
tagFilters: {
type: 'array',
description: 'Tag filters applied to the query. Use tag display names from list_tags.',
items: {
type: 'object',
properties: {
operator: {
type: 'string',
description: 'Comparison operator (defaults to eq)',
enum: [
'eq',
'neq',
'contains',
'not_contains',
'starts_with',
'ends_with',
'gt',
'gte',
'lt',
'lte',
'between',
],
},
tagName: {
type: 'string',
description: 'Tag display name as returned by list_tags',
},
tagValue: { type: ['string', 'number', 'boolean'], description: 'Typed tag value' },
valueTo: {
type: ['string', 'number'],
description: 'Upper bound required by the between operator',
},
},
required: ['tagName', 'tagValue'],
},
},
topK: {
type: 'number',
description: 'Number of results to return (1-50, default: 5)',
Expand Down
99 changes: 99 additions & 0 deletions apps/sim/lib/copilot/generated/tool-schemas-v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2159,6 +2159,25 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
type: 'string',
},
},
documentTags: {
type: 'array',
description:
'Tag values to persist on a document (optional for update_document). Use tag display names from list_tags.',
items: {
type: 'object',
properties: {
tagName: {
type: 'string',
description: 'Tag display name as returned by list_tags',
},
value: {
type: ['string', 'number', 'boolean'],
description: 'Typed tag value',
},
},
required: ['tagName', 'value'],
},
},
enabled: {
type: 'boolean',
description: 'Enable/disable a document (optional for update_document)',
Expand Down Expand Up @@ -2221,6 +2240,46 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
'Field type: text, number, date, boolean (optional for create_tag, defaults to text)',
enum: ['text', 'number', 'date', 'boolean'],
},
tagFilters: {
type: 'array',
description:
'Tag filters applied to the query. Use tag display names from list_tags.',
items: {
type: 'object',
properties: {
operator: {
type: 'string',
description: 'Comparison operator (defaults to eq)',
enum: [
'eq',
'neq',
'contains',
'not_contains',
'starts_with',
'ends_with',
'gt',
'gte',
'lt',
'lte',
'between',
],
},
tagName: {
type: 'string',
description: 'Tag display name as returned by list_tags',
},
tagValue: {
type: ['string', 'number', 'boolean'],
description: 'Typed tag value',
},
valueTo: {
type: ['string', 'number'],
description: 'Upper bound required by the between operator',
},
},
required: ['tagName', 'tagValue'],
},
},
topK: {
type: 'number',
description: 'Number of results to return (1-50, default: 5)',
Expand Down Expand Up @@ -3501,6 +3560,46 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
type: 'string',
description: "Search query text (required for 'query')",
},
tagFilters: {
type: 'array',
description:
'Tag filters applied to the query. Use tag display names from list_tags.',
items: {
type: 'object',
properties: {
operator: {
type: 'string',
description: 'Comparison operator (defaults to eq)',
enum: [
'eq',
'neq',
'contains',
'not_contains',
'starts_with',
'ends_with',
'gt',
'gte',
'lt',
'lte',
'between',
],
},
tagName: {
type: 'string',
description: 'Tag display name as returned by list_tags',
},
tagValue: {
type: ['string', 'number', 'boolean'],
description: 'Typed tag value',
},
valueTo: {
type: ['string', 'number'],
description: 'Upper bound required by the between operator',
},
},
required: ['tagName', 'tagValue'],
},
},
topK: {
type: 'number',
description: 'Number of results to return (1-50, default: 5)',
Expand Down
Loading
Loading