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

Function requireThreadGoalId

projects/runtime-node/src/agents.ts:297–301  ·  view source on GitHub ↗
(params: unknown)

Source from the content-addressed store, hash-verified

295}
296
297function requireThreadGoalId(params: unknown): string {
298 const id = optionalThreadId(params)
299 if (!id) throw new Error("threadId or goalId is required")
300 return id
301}
302
303function normalizeTokenBudget(value: unknown): number | null | undefined {
304 if (value === null) return null

Callers 2

threadGoalSetParamsFunction · 0.85

Calls 1

optionalThreadIdFunction · 0.85

Tested by

no test coverage detected