MCPcopy Index your code
hub / github.com/simstudioai/sim / taskStateLabel

Function taskStateLabel

apps/sim/lib/a2a/client.ts:307–312  ·  view source on GitHub ↗
(state: TaskState)

Source from the content-addressed store, hash-verified

305}
306
307function taskStateLabel(state: TaskState): string {
308 return taskStateToJSON(state)
309 .replace(/^TASK_STATE_/, '')
310 .toLowerCase()
311 .replace(/_/g, '-')
312}
313
314/** A send result is a `Task` when it carries status; otherwise it is a `Message`. */
315export function isTaskResult(result: Message | Task): result is Task {

Callers 1

taskOutputFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected