@promptbook/google
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
33 lines (32 loc) • 922 B
TypeScript
/**
* Matched compact agent reference token inside commitment content.
*
* @private internal utility of agent reference resolution
*/
export type AgentReferenceTokenMatch = {
/**
* Original token text, for example `{Agent Name}` or `@AgentId`.
*/
readonly token: string;
/**
* Token payload used for lookup.
*/
readonly reference: string;
/**
* Zero-based character offset of `token` in the scanned content.
*/
readonly index: number;
/**
* Length of `token` in characters.
*/
readonly length: number;
};
/**
* Extracts compact agent-reference tokens from commitment content.
*
* @param content - Commitment content to inspect.
* @returns Matched compact reference tokens.
*
* @private internal utility of agent reference resolution
*/
export declare function extractAgentReferenceTokens(content: string): Array<AgentReferenceTokenMatch>;