UNPKG

@adonis-agora/agent

Version:

Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.

29 lines • 1.73 kB
import type { CompanyClient } from './company.js'; import type { ExcludedTask, TaskAlternative, TaskCoverage } from './types.js'; /** The Agent Skills discovery index schema this client knows (9.4). */ export declare const SKILL_INDEX_SCHEMA = "https://schemas.agentskills.io/discovery/0.2.0/schema.json"; /** * Drops what 9.2 says to ignore: references of a type this client doesn't know, and `openapi` or * `mcp` references to an API the Company doesn't list, so an alternative can't aim it elsewhere. */ export declare function safeAlternative(company: CompanyClient, alternative: TaskAlternative | undefined): TaskAlternative | undefined; /** * The tasks response for the current Session (section 9): `GET {tasks.endpoint}` with the Session * header and no access token, early in a Session. It's reused only in the Session that got it, as * its caching headers allow. Without a response, there are no excluded tasks, skills or feedback. */ export declare function taskCoverage(company: CompanyClient, opts?: { refresh?: boolean | undefined; }): Promise<TaskCoverage>; /** The tasks the Company chose not to offer through this protocol (9.1), for this Session. */ export declare function excludedTasks(company: CompanyClient): Promise<ExcludedTask[]>; /** * Reports a task that can't be done through this protocol (9.3) to the `feedback.endpoint` of this * Session's tasks response. Answers the Company's alternative when it has one (HTTP 200), or `null` * (HTTP 202). No personal data or secrets in the report. */ export declare function sendFeedback(company: CompanyClient, report: { task: string; description: string; }): Promise<TaskAlternative | null>; //# sourceMappingURL=task_coverage.d.ts.map