@promptbook/remote-client
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
35 lines (34 loc) • 1.1 kB
TypeScript
import type { CalendarReference } from './calendarReference';
/**
* Shared hidden arguments potentially injected into any USE CALENDAR tool call.
*
* @private type of UseCalendarCommitmentDefinition
*/
export type UseCalendarToolArgsBase = {
calendarUrl?: string;
__promptbookToolRuntimeContext?: unknown;
};
/**
* Resolved runtime payload used by USE CALENDAR tools.
*
* @private type of resolveUseCalendarToolRuntimeOrWalletCredentialResult
*/
type UseCalendarResolvedRuntime = {
calendarReference: CalendarReference;
accessToken: string;
};
/**
* Runtime resolution result for USE CALENDAR tools.
*
* @private type of UseCalendarCommitmentDefinition
*/
export type UseCalendarToolRuntimeResolution = UseCalendarResolvedRuntime | {
walletResult: string;
};
/**
* Resolves calendar runtime or returns a wallet-credential-required payload when missing.
*
* @private function of UseCalendarCommitmentDefinition
*/
export declare function resolveUseCalendarToolRuntimeOrWalletCredentialResult(args: UseCalendarToolArgsBase): UseCalendarToolRuntimeResolution;
export {};