(status: unknown)
| 307 | } |
| 308 | |
| 309 | function 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 | |
| 323 | function threadGoalSetParams(params: unknown, patch: Partial<AgentGoalSetParams> = {}): AgentGoalSetParams { |
| 324 | const record = asRecord(params) |
no outgoing calls
no test coverage detected