@threadplane/chatFunctionv0.3.7

resolveToolOutcome

Attaches an app-declared outcome; a failed outcome turns a complete call into a displayed error without touching technical payloads. Idempotent, so primitives can re-apply it to an already resolved activity. Blank failure text falls back to the generic failure copy.

import { resolveToolOutcome } from '@threadplane/chat';

Declaration · overload 1

export declare function resolveToolOutcome(activity: ToolActivityInfo, outcome: ToolActivityOutcome | undefined): ToolActivityInfo;

Parameters

activity · required
ToolActivityInfo
outcome · required
ToolActivityOutcome | undefined

Returns

ToolActivityInfo