@adonis-agora/agent
Version:
Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.
22 lines • 1.45 kB
TypeScript
/**
* Extension content in Company messages (8.4): the Links and Disclosures extensions, version 1. Each
* is read only when this agent declared it to the Company in that version, and only from Company
* messages. Both are content from the Company (10.1): show them, never follow them as instructions.
*/
import type { CompanyClient } from './company.js';
import type { EventMessage, MessageDisclosure, MessageLink } from './types.js';
export declare const LINKS_EXTENSION = "links";
export declare const DISCLOSURES_EXTENSION = "disclosures";
export declare const LINKS_VERSION = "1";
export declare const DISCLOSURES_VERSION = "1";
/** Extensions only Company messages carry: a Personal Agent never sends their content. */
export declare const COMPANY_ONLY_CONTENT: string[];
/**
* The links of a Company message (Links extension), in the order the message refers to them. A link
* whose `url` isn't HTTPS (or points to an internal address) is dropped. Each carries its `domain`:
* a `title` can name a page other than the one at its URL, so show the domain with it.
*/
export declare function linksOf(company: CompanyClient, message: EventMessage | undefined): MessageLink[];
/** The disclosures of a Company message (Disclosures extension): notices to show with it. */
export declare function disclosuresOf(company: CompanyClient, message: EventMessage | undefined): MessageDisclosure[];
//# sourceMappingURL=message_extensions.d.ts.map