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· requiredToolExecutionKeyinvocation· requiredstring
Returns
Promise<ToolExecutionAcquisition>settle · overload 1
settle(key: ToolExecutionKey, settlement: ToolExecutionSettlement): Promise<'accepted' | 'rejected'>;Parameters
key· requiredToolExecutionKeysettlement· requiredToolExecutionSettlement
Returns
Promise<'accepted' | 'rejected'>