Graphorin API reference v0.4.0
Graphorin API reference / @graphorin/security / / BridgedSourceResult
Type Alias: BridgedSourceResult
ts
type BridgedSourceResult =
| {
durationMs: number;
ok: true;
output: unknown;
toolCalls: number;
}
| {
durationMs: number;
error: {
kind: "timeout" | "sandbox-violation" | "aborted" | "execution-failed";
message: string;
};
ok: false;
toolCalls: number;
};Defined in: packages/security/src/sandbox/bridged-source.ts:87
Outcome of a runBridgedSource run.
Union Members
Type Literal
ts
{
durationMs: number;
ok: true;
output: unknown;
toolCalls: number;
}| Name | Type | Description | Defined in |
|---|---|---|---|
durationMs | number | - | packages/security/src/sandbox/bridged-source.ts:94 |
ok | true | - | packages/security/src/sandbox/bridged-source.ts:89 |
output | unknown | The script's final return value (structured-clone safe). | packages/security/src/sandbox/bridged-source.ts:91 |
toolCalls | number | Number of bridged tool calls the script made. | packages/security/src/sandbox/bridged-source.ts:93 |
Type Literal
ts
{
durationMs: number;
error: {
kind: "timeout" | "sandbox-violation" | "aborted" | "execution-failed";
message: string;
};
ok: false;
toolCalls: number;
}