ToolExecutionResult

Unpublished development API. This package is under development and is not available as a published release.

Settled tool outcome containing either a portable result value or a displayable error string.

import type { ToolExecutionResult } from '@threadplane/core/tools';

Declaration

export type ToolExecutionResult = {
    readonly ok: true;
    readonly value: PlainValue;
} | {
    readonly ok: false;
    readonly error: string;
};