MCPcopy Index your code
hub / github.com/simstudioai/sim / isGenAIMessageCaptureEnabled

Function isGenAIMessageCaptureEnabled

apps/sim/lib/copilot/request/otel.ts:35–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33const GENAI_MESSAGE_ATTR_MAX_BYTES = 60 * 1024
34
35function isGenAIMessageCaptureEnabled(): boolean {
36 const raw = (process.env[GENAI_CAPTURE_ENV] || '').toLowerCase().trim()
37 return raw === 'true' || raw === '1' || raw === 'yes'
38}
39
40// True iff `err` represents the user explicitly clicking Stop — the
41// only cancellation we treat as expected (non-error).

Callers 4

setAgentInputMessagesFunction · 0.85
setAgentOutputMessagesFunction · 0.85
withCopilotToolSpanFunction · 0.85
buildAgentSpanAttributesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected