MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / getContextUsageForComposerState

Function getContextUsageForComposerState

desktop/runtime/composer-state.ts:82–92  ·  view source on GitHub ↗
(
  session: AgentSession,
  options: BuildComposerStateOptions = {},
)

Source from the content-addressed store, hash-verified

80}
81
82function getContextUsageForComposerState(
83 session: AgentSession,
84 options: BuildComposerStateOptions = {},
85) {
86 const cachedUsage = contextUsageCache.get(session)
87 if (options.includeContextUsage === false && cachedUsage !== undefined) {
88 return cachedUsage
89 }
90
91 return mapContextUsage(session)
92}
93
94export function getAvailableThinkingLevelsForModel(
95 model: ComposerSourceModel | null,

Callers 1

buildComposerStateFunction · 0.85

Calls 2

mapContextUsageFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected