Orchestrierung abrufen
curl --request GET \
--url https://api.truthlocks.com/v1/orchestrate/executions/{orchestrationId} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/orchestrate/executions/{orchestrationId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/orchestrate/executions/{orchestrationId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/orchestrate/executions/{orchestrationId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"orchestration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agents": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"parameters": {},
"status": "pending",
"steps": [
{
"step_id": "<string>",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"action": "<string>",
"status": "<string>",
"result": {},
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z"
}
],
"results": {},
"receipts": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"created_at": "2023-11-07T05:31:56Z"
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Orchestrierungen & Workflows
Orchestrierung abrufen
Rufen Sie das vollständige Ausführungsergebnis einer Orchestrierung ab, einschließlich Details auf Schritt-Ebene und Kostenverfolgung.
GET
/
v1
/
orchestrate
/
executions
/
{orchestrationId}
Orchestrierung abrufen
curl --request GET \
--url https://api.truthlocks.com/v1/orchestrate/executions/{orchestrationId} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/orchestrate/executions/{orchestrationId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/orchestrate/executions/{orchestrationId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/orchestrate/executions/{orchestrationId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"orchestration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agents": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"parameters": {},
"status": "pending",
"steps": [
{
"step_id": "<string>",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"action": "<string>",
"status": "<string>",
"result": {},
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z"
}
],
"results": {},
"receipts": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"created_at": "2023-11-07T05:31:56Z"
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Gibt den vollständigen Ausführungsstatus einer Orchestrierung zurück, einschließlich ihres aktuellen Status, jedes ausgeführten Schritts, der endgültigen Ausgabe, der kumulierten Kosten und des Transparenzprotokollbelegs nach Abschluss.
Fragen Sie diesen Endpunkt ab, um den Orchestrierungsfortschritt zu verfolgen. Für Echtzeit-Updates konfigurieren Sie einen Webhook für
orchestration.completed- und orchestration.failed-Ereignisse.
Antwort
Geordnetes Array von Ausführungsschritten. Jeder Schritt enthält: -
step_number
(Integer) — Sequenzieller Schrittindex (1-basiert) - action (String) — Aktion
durchgeführt (z.B. llm_inference, tool_call, decision, guardrail_check) -
result (string) — Zusammenfassung des Schritt-Ergebnisses - duration_ms (integer) — Schritt
Ausführungszeit in MillisekundenTransparenzprotokoll-Beleg, der die abgeschlossene Orchestrierung verankert. Nur vorhanden
wenn der Status
completed ist.
