MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / normalizeTokenBudget

Function normalizeTokenBudget

projects/runtime-node/src/agents.ts:303–307  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

301}
302
303function normalizeTokenBudget(value: unknown): number | null | undefined {
304 if (value === null) return null
305 if (typeof value === "number" && Number.isFinite(value)) return value
306 return undefined
307}
308
309function normalizeGoalStatus(status: unknown): AgentThreadGoalStatus | undefined {
310 if (

Callers 2

threadGoalSetParamsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected