@adonis-agora/agent
Version:
Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.
10 lines • 649 B
TypeScript
/**
* The shape a thread id may take where it crosses into a response header (`X-Agent-Thread-Id`) or
* names a new thread a caller picked: 1-200 characters of letters, digits and `_ - . : @`, starting
* with a letter or digit. Generated ids (UUIDs) and the usual caller-chosen ones (`thread-1`,
* `conv:42`) fit; control characters, spaces, quotes and anything a header cannot carry do not.
*/
export declare const THREAD_ID_PATTERN: RegExp;
/** Whether `value` is a thread id this library accepts ({@link THREAD_ID_PATTERN}). */
export declare function isValidThreadId(value: unknown): value is string;
//# sourceMappingURL=thread-id.d.ts.map