ToolExecutionStore

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

Atomically bind a stable identity to its invocation and one execution owner. Only the acquired token can settle; observers never receive that authority.

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

Declaration

export interface ToolExecutionStore  {
  acquire(key: ToolExecutionKey, invocation: string): Promise<ToolExecutionAcquisition>;
  settle(key: ToolExecutionKey, settlement: ToolExecutionSettlement): Promise<'accepted' | 'rejected'>;
}

Members

acquire · overload 1

acquire(key: ToolExecutionKey, invocation: string): Promise<ToolExecutionAcquisition>;

Parameters

key · required
ToolExecutionKey
invocation · required
string

Returns

Promise<ToolExecutionAcquisition>

settle · overload 1

settle(key: ToolExecutionKey, settlement: ToolExecutionSettlement): Promise<'accepted' | 'rejected'>;

Parameters

key · required
ToolExecutionKey
settlement · required
ToolExecutionSettlement

Returns

Promise<'accepted' | 'rejected'>