17 lines
517 B
TypeScript
17 lines
517 B
TypeScript
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
import type { AutopilotToolResult } from "./AutopilotToolResult";
|
|
import type { ToolFailure } from "./ToolFailure";
|
|
|
|
export type ToolOutcome =
|
|
| ({ type: "success" } & AutopilotToolResult)
|
|
| { type: "rejected"; reason: string }
|
|
| {
|
|
type: "failure";
|
|
/**
|
|
* Structured error data from the tool.
|
|
*/
|
|
error: ToolFailure;
|
|
}
|
|
| { type: "missing" }
|
|
| { type: "unknown" };
|