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

Function getStreamConfig

apps/sim/lib/copilot/request/session/buffer.ts:41–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41export function getStreamConfig(): StreamConfig {
42 return {
43 ttlSeconds: envNumber(env.COPILOT_STREAM_TTL_SECONDS, DEFAULT_TTL_SECONDS, { min: 1 }),
44 eventLimit: envNumber(env.COPILOT_STREAM_EVENT_LIMIT, DEFAULT_EVENT_LIMIT, { min: 1 }),
45 }
46}
47
48async function withRedisRetry<T>(
49 metadata: RedisOperationMetadata,

Callers 4

upsertFilePreviewSessionFunction · 0.90
allocateCursorFunction · 0.85
appendEventsFunction · 0.85
writeAbortMarkerFunction · 0.85

Calls 1

envNumberFunction · 0.90

Tested by

no test coverage detected