Skip to content
Merged
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
6 changes: 6 additions & 0 deletions apps/sim/lib/copilot/generated/metrics-v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// union is queryable as one series set.

export const Metric = {
CopilotBillingLongContextCount: 'copilot.billing.long_context.count',
CopilotCacheAttempted: 'copilot.cache.attempted',
CopilotCacheHit: 'copilot.cache.hit',
CopilotCacheWrite: 'copilot.cache.write',
Expand All @@ -23,6 +24,8 @@ export const Metric = {
CopilotFileReadDuration: 'copilot.file.read.duration',
CopilotFileReadSize: 'copilot.file.read.size',
CopilotMessagesSerializeDuration: 'copilot.messages.serialize.duration',
CopilotOptionsEmittedCount: 'copilot.options.emitted.count',
CopilotPromptComponentChars: 'copilot.prompt.component.chars',
CopilotRequestCount: 'copilot.request.count',
CopilotRequestDuration: 'copilot.request.duration',
CopilotToolCalls: 'copilot.tool.calls',
Expand All @@ -44,6 +47,7 @@ export type MetricValue = (typeof Metric)[MetricKey]

/** Readonly sorted list of every canonical mothership metric name. */
export const MetricValues: readonly MetricValue[] = [
'copilot.billing.long_context.count',
'copilot.cache.attempted',
'copilot.cache.hit',
'copilot.cache.write',
Expand All @@ -53,6 +57,8 @@ export const MetricValues: readonly MetricValue[] = [
'copilot.file.read.duration',
'copilot.file.read.size',
'copilot.messages.serialize.duration',
'copilot.options.emitted.count',
'copilot.prompt.component.chars',
'copilot.request.count',
'copilot.request.duration',
'copilot.tool.calls',
Expand Down
16 changes: 8 additions & 8 deletions apps/sim/lib/copilot/generated/tool-catalog-v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5693,7 +5693,7 @@ export const TableRows: ToolCatalogEntry = {
data: {
type: 'object',
description:
'Row data as column → value pairs (required for insert_row, update_row; the patch object for update_rows_by_filter). Select (enum) cells take the option NAME. TTL cells take an absolute whole Unix epoch timestamp in seconds, never JavaScript milliseconds; missing or null TTL means no expiration.',
'Row data as column → value pairs (required for insert_row, update_row; the patch object for update_rows_by_filter). Select (enum) cells take the option NAME. TTL cells take absolute whole Unix epoch seconds, never JavaScript milliseconds. On insert_row, a missing or null TTL means no expiration. On update_row and update_rows_by_filter, omit the TTL to preserve its current value or set it to null to clear the expiration.',
},
filter: {
type: 'object',
Expand Down Expand Up @@ -5724,18 +5724,18 @@ export const TableRows: ToolCatalogEntry = {
rows: {
type: 'array',
description:
'Array of row data objects (required for batch_insert_rows). TTL cells take absolute whole Unix epoch timestamps in seconds, never JavaScript milliseconds.',
'Array of row data objects (required for batch_insert_rows). TTL cells take absolute whole Unix epoch seconds, never JavaScript milliseconds; a missing or null TTL means no expiration.',
},
tableId: { type: 'string', description: 'Table ID (required for every operation)' },
updates: {
type: 'array',
description:
'Array of per-row updates: [{ rowId, data: { col: val } }] (batch_update_rows format a)',
"Array of per-row updates: [{ rowId, data: { col: val } }] (batch_update_rows format a). TTL values are absolute whole Unix epoch seconds, never JavaScript milliseconds; omit a row's TTL key to preserve it or set it to null to clear the expiration.",
},
values: {
type: 'object',
description:
'Map of rowId → value for single-column batch update (batch_update_rows format b, with columnName)',
"Map of rowId → value for single-column batch update (batch_update_rows format b, with columnName). For a TTL column, values are absolute whole Unix epoch seconds, never JavaScript milliseconds; set a row's value to null to clear its expiration, and omit the row from the map to leave it unchanged.",
},
},
required: ['tableId'],
Expand Down Expand Up @@ -6073,7 +6073,7 @@ export const UserTable: ToolCatalogEntry = {
data: {
type: 'object',
description:
'Row data as key-value pairs (required for insert_row, update_row). TTL cells take an absolute whole Unix epoch timestamp in seconds, never JavaScript milliseconds; missing or null TTL means no expiration.',
'Row data as key-value pairs (required for insert_row, update_row). TTL cells take absolute whole Unix epoch seconds, never JavaScript milliseconds. On insert_row, a missing or null TTL means no expiration. On update_row, omit the TTL to preserve its current value or set it to null to clear the expiration.',
},
dependencies: {
type: 'object',
Expand Down Expand Up @@ -6270,7 +6270,7 @@ export const UserTable: ToolCatalogEntry = {
rows: {
type: 'array',
description:
'Array of row data objects (required for batch_insert_rows). TTL cells take absolute whole Unix epoch timestamps in seconds, never JavaScript milliseconds.',
'Array of row data objects (required for batch_insert_rows). TTL cells take absolute whole Unix epoch seconds, never JavaScript milliseconds; a missing or null TTL means no expiration.',
},
runMode: {
type: 'string',
Expand Down Expand Up @@ -6306,12 +6306,12 @@ export const UserTable: ToolCatalogEntry = {
updates: {
type: 'array',
description:
'Array of per-row updates: [{ rowId, data: { col: val } }] (for batch_update_rows)',
"Array of per-row updates: [{ rowId, data: { col: val } }] (for batch_update_rows). TTL values are absolute whole Unix epoch seconds, never JavaScript milliseconds; omit a row's TTL key to preserve it or set it to null to clear the expiration.",
},
values: {
type: 'object',
description:
'Map of rowId to value for single-column batch update: { "rowId1": val1, "rowId2": val2 } (for batch_update_rows with columnName)',
'Map of rowId to value for single-column batch update: { "rowId1": val1, "rowId2": val2 } (for batch_update_rows with columnName). For a TTL column, values are absolute whole Unix epoch seconds, never JavaScript milliseconds; set a row\'s value to null to clear its expiration, and omit the row from the map to leave it unchanged.',
},
workflowId: {
type: 'string',
Expand Down
16 changes: 8 additions & 8 deletions apps/sim/lib/copilot/generated/tool-schemas-v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5613,7 +5613,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
data: {
type: 'object',
description:
'Row data as column → value pairs (required for insert_row, update_row; the patch object for update_rows_by_filter). Select (enum) cells take the option NAME. TTL cells take an absolute whole Unix epoch timestamp in seconds, never JavaScript milliseconds; missing or null TTL means no expiration.',
'Row data as column → value pairs (required for insert_row, update_row; the patch object for update_rows_by_filter). Select (enum) cells take the option NAME. TTL cells take absolute whole Unix epoch seconds, never JavaScript milliseconds. On insert_row, a missing or null TTL means no expiration. On update_row and update_rows_by_filter, omit the TTL to preserve its current value or set it to null to clear the expiration.',
},
filter: {
type: 'object',
Expand Down Expand Up @@ -5649,7 +5649,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
rows: {
type: 'array',
description:
'Array of row data objects (required for batch_insert_rows). TTL cells take absolute whole Unix epoch timestamps in seconds, never JavaScript milliseconds.',
'Array of row data objects (required for batch_insert_rows). TTL cells take absolute whole Unix epoch seconds, never JavaScript milliseconds; a missing or null TTL means no expiration.',
},
tableId: {
type: 'string',
Expand All @@ -5658,12 +5658,12 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
updates: {
type: 'array',
description:
'Array of per-row updates: [{ rowId, data: { col: val } }] (batch_update_rows format a)',
"Array of per-row updates: [{ rowId, data: { col: val } }] (batch_update_rows format a). TTL values are absolute whole Unix epoch seconds, never JavaScript milliseconds; omit a row's TTL key to preserve it or set it to null to clear the expiration.",
},
values: {
type: 'object',
description:
'Map of rowId → value for single-column batch update (batch_update_rows format b, with columnName)',
"Map of rowId → value for single-column batch update (batch_update_rows format b, with columnName). For a TTL column, values are absolute whole Unix epoch seconds, never JavaScript milliseconds; set a row's value to null to clear its expiration, and omit the row from the map to leave it unchanged.",
},
},
required: ['tableId'],
Expand Down Expand Up @@ -6013,7 +6013,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
data: {
type: 'object',
description:
'Row data as key-value pairs (required for insert_row, update_row). TTL cells take an absolute whole Unix epoch timestamp in seconds, never JavaScript milliseconds; missing or null TTL means no expiration.',
'Row data as key-value pairs (required for insert_row, update_row). TTL cells take absolute whole Unix epoch seconds, never JavaScript milliseconds. On insert_row, a missing or null TTL means no expiration. On update_row, omit the TTL to preserve its current value or set it to null to clear the expiration.',
},
dependencies: {
type: 'object',
Expand Down Expand Up @@ -6233,7 +6233,7 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
rows: {
type: 'array',
description:
'Array of row data objects (required for batch_insert_rows). TTL cells take absolute whole Unix epoch timestamps in seconds, never JavaScript milliseconds.',
'Array of row data objects (required for batch_insert_rows). TTL cells take absolute whole Unix epoch seconds, never JavaScript milliseconds; a missing or null TTL means no expiration.',
},
runMode: {
type: 'string',
Expand Down Expand Up @@ -6271,12 +6271,12 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
updates: {
type: 'array',
description:
'Array of per-row updates: [{ rowId, data: { col: val } }] (for batch_update_rows)',
"Array of per-row updates: [{ rowId, data: { col: val } }] (for batch_update_rows). TTL values are absolute whole Unix epoch seconds, never JavaScript milliseconds; omit a row's TTL key to preserve it or set it to null to clear the expiration.",
},
values: {
type: 'object',
description:
'Map of rowId to value for single-column batch update: { "rowId1": val1, "rowId2": val2 } (for batch_update_rows with columnName)',
'Map of rowId to value for single-column batch update: { "rowId1": val1, "rowId2": val2 } (for batch_update_rows with columnName). For a TTL column, values are absolute whole Unix epoch seconds, never JavaScript milliseconds; set a row\'s value to null to clear its expiration, and omit the row from the map to leave it unchanged.',
},
workflowId: {
type: 'string',
Expand Down
8 changes: 8 additions & 0 deletions apps/sim/lib/copilot/generated/trace-attributes-v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,9 @@ export const TraceAttr = {
SpanType: 'span.type',
StreamId: 'stream.id',
SubagentDepth: 'subagent.depth',
SubagentEscalationApplied: 'subagent.escalation.applied',
SubagentEscalationPriorCalls: 'subagent.escalation.prior_calls',
SubagentEscalationRequested: 'subagent.escalation.requested',
SubagentExecutionPhase: 'subagent.execution.phase',
SubagentId: 'subagent.id',
SubagentNested: 'subagent.nested',
Expand All @@ -600,6 +603,7 @@ export const TraceAttr = {
SubagentOutcomeSuccess: 'subagent.outcome.success',
SubagentOutcomeToolCallCount: 'subagent.outcome.tool_call_count',
SubagentParentAgentId: 'subagent.parent_agent_id',
SubagentRouteManifestMissing: 'subagent.route.manifest_missing',
SubagentSessionId: 'subagent.session.id',
SubagentSessionOperation: 'subagent.session.operation',
SubagentSessionPersistenceOutcome: 'subagent.session.persistence_outcome',
Expand Down Expand Up @@ -1266,6 +1270,9 @@ export const TraceAttrValues: readonly TraceAttrValue[] = [
'span.type',
'stream.id',
'subagent.depth',
'subagent.escalation.applied',
'subagent.escalation.prior_calls',
'subagent.escalation.requested',
'subagent.execution.phase',
'subagent.id',
'subagent.nested',
Expand All @@ -1277,6 +1284,7 @@ export const TraceAttrValues: readonly TraceAttrValue[] = [
'subagent.outcome.success',
'subagent.outcome.tool_call_count',
'subagent.parent_agent_id',
'subagent.route.manifest_missing',
'subagent.session.id',
'subagent.session.operation',
'subagent.session.persistence_outcome',
Expand Down
Loading