sdkDeterministic

List ai decisions

pipeline.listAiDecisions

Read the last 50 decision calls, including confidence, provider, usage, cost, and failures. Personal calls are visible only to their owner.

Parameters

workspaceIdrequired
string
No description.

Example

TypeScripttypescript
await pipeline.listAiDecisions({
"workspaceId": "00000000-0000-4000-8000-000000000000"
})

Response

Success response schemajson schema
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"calls": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"provider": {
"type": "string"
},
"model": {
"type": "string"
},
"task": {
"type": "string"
},
"scope": {
"type": "string"
},
"status": {
"type": "string"
},
"costUsd": {
"type": [
"string",
"null"
]
},
"costStatus": {
"type": "string"
}
},
"required": [
"id",
"provider",
"model",
"task",
"scope",
"status",
"costStatus"
]
}
}
},
"required": [
"success",
"calls"
]
}

Exceptions

PipelineError
Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.
Pipeline TypeScript SDK documentation | Pipeline