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

Function normalizeGoalStatus

projects/runtime-node/src/agents.ts:309–321  ·  view source on GitHub ↗
(status: unknown)

Source from the content-addressed store, hash-verified

307}
308
309function normalizeGoalStatus(status: unknown): AgentThreadGoalStatus | undefined {
310 if (
311 status === "active" ||
312 status === "paused" ||
313 status === "blocked" ||
314 status === "usageLimited" ||
315 status === "budgetLimited" ||
316 status === "complete"
317 ) {
318 return status
319 }
320 return undefined
321}
322
323function threadGoalSetParams(params: unknown, patch: Partial<AgentGoalSetParams> = {}): AgentGoalSetParams {
324 const record = asRecord(params)

Callers 1

threadGoalSetParamsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected