Skip to main content
Version: 4.7.28

Runs - Get

Get run data for a given run ID with getRun().

Example

typescript
import { init, getRun } from "@gentrace/core";
 
async function main() {
init({
apiKey: process.env.GENTRACE_API_KEY ?? "",
});
 
// example runID
const runID = "5615b021-03cd-4cd9-9bc8-6a2f7bf4240e";
const runData = await getRun(runID);
 
console.log(runData);
console.log(runData.stepRuns[0].inputs);
console.log(runData.stepRuns[0].outputs);
}
 
main();

Arguments

id: string (UUID format)

Return value

Returns Run.

Learn about the typing of the return value on this API page.