Skip to content

Commit 77b37c7

Browse files
committed
improvement(contracts): update vfs contracts
1 parent 0b57e1c commit 77b37c7

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

apps/sim/lib/copilot/generated/metrics-v1.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export const Metric = {
2424
CopilotRequestDuration: 'copilot.request.duration',
2525
CopilotToolCalls: 'copilot.tool.calls',
2626
CopilotToolDuration: 'copilot.tool.duration',
27+
CopilotVfsDelta: 'copilot.vfs.delta',
2728
CopilotVfsMaterializeDuration: 'copilot.vfs.materialize.duration',
2829
GenAiClientCacheTokenUsage: 'gen_ai.client.cache.token.usage',
2930
GenAiClientTokenUsage: 'gen_ai.client.token.usage',
@@ -48,6 +49,7 @@ export const MetricValues: readonly MetricValue[] = [
4849
'copilot.request.duration',
4950
'copilot.tool.calls',
5051
'copilot.tool.duration',
52+
'copilot.vfs.delta',
5153
'copilot.vfs.materialize.duration',
5254
'gen_ai.client.cache.token.usage',
5355
'gen_ai.client.token.usage',

apps/sim/lib/copilot/generated/trace-attributes-v1.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ export const TraceAttr = {
266266
CopilotTransport: 'copilot.transport',
267267
CopilotUserMessagePreview: 'copilot.user.message_preview',
268268
CopilotValidateOutcome: 'copilot.validate.outcome',
269+
CopilotVfsDeltaOutcome: 'copilot.vfs.delta.outcome',
269270
CopilotVfsFileExtension: 'copilot.vfs.file.extension',
270271
CopilotVfsFileMediaType: 'copilot.vfs.file.media_type',
271272
CopilotVfsFileName: 'copilot.vfs.file.name',
@@ -411,6 +412,8 @@ export const TraceAttr = {
411412
GenAiStreamPhaseToolArgsFirstMs: 'gen_ai.stream.phase.tool_args.first_ms',
412413
GenAiStreamPhaseToolArgsMs: 'gen_ai.stream.phase.tool_args.ms',
413414
GenAiSystem: 'gen_ai.system',
415+
GenAiThinkingBlocksCaptured: 'gen_ai.thinking.blocks_captured',
416+
GenAiThinkingRedactedBlocks: 'gen_ai.thinking.redacted_blocks',
414417
GenAiTokenType: 'gen_ai.token.type',
415418
GenAiToolName: 'gen_ai.tool.name',
416419
GenAiUsageCacheCreationInputTokens: 'gen_ai.usage.cache_creation.input_tokens',
@@ -890,6 +893,7 @@ export const TraceAttrValues: readonly TraceAttrValue[] = [
890893
'copilot.transport',
891894
'copilot.user.message_preview',
892895
'copilot.validate.outcome',
896+
'copilot.vfs.delta.outcome',
893897
'copilot.vfs.file.extension',
894898
'copilot.vfs.file.media_type',
895899
'copilot.vfs.file.name',
@@ -1024,6 +1028,8 @@ export const TraceAttrValues: readonly TraceAttrValue[] = [
10241028
'gen_ai.stream.phase.tool_args.first_ms',
10251029
'gen_ai.stream.phase.tool_args.ms',
10261030
'gen_ai.system',
1031+
'gen_ai.thinking.blocks_captured',
1032+
'gen_ai.thinking.redacted_blocks',
10271033
'gen_ai.token.type',
10281034
'gen_ai.tool.name',
10291035
'gen_ai.usage.cache_creation.input_tokens',

0 commit comments

Comments
 (0)