Built-in abilities, research presets, file context, and MCP resource connections.
Built-in abilities, research presets, file context, and MCP resource connections. Read the presets and context guide for examples, defaults, and behavior.These declarations cover every public export in this category. Import from @agentium/harness. Types such as ChatMessage, RunContext, and ExecutionServices come from @agentium/core. A ? marks an optional field.
export interface MCPResourceGrant { /** Exact server URI, never a local path or a URL fetched by the harness. */ uri: string; /** Explicit text formats. A missing MIME is accepted only when listed as "". */ mimeTypes: readonly string[];}
MCPResourcesOptions
export interface MCPResourcesOptions { id: string; /** Creates a principal-scoped connection for this binding. Authentication belongs to the host. */ connect: (ctx: RunContext) => Promise<{ client: MCPResourceClient; dispose?: () => Promise<void>; }>; /** Bounds setup even when the host connection factory ignores cancellation. Default 5000. */ connectTimeoutMs?: number; resources: readonly MCPResourceGrant[]; /** Rechecked before reading and before returning content, including on every subsequent fetch. */ authorize: (grant: MCPResourceGrant, ctx: RunContext) => boolean | Promise<boolean>; /** Optional host selector, constrained to the declared grants. No server-wide discovery. */ select?: (query: string, ctx: RunContext) => readonly string[] | Promise<readonly string[]>;}
/** Minimal local composition, no background jobs, learning, tools or provider selected implicitly. */export declare function base(options?: BaseOptions): HarnessDefinition;
/** Real context sources plus application-supplied research tools; no connector credentials or implicit web calls. */export declare function research(options?: ResearchOptions): HarnessDefinition;