UNPKG

@promptbook/remote-client

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

35 lines (34 loc) 1.1 kB
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements'; import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition'; /** * USE MCP commitment definition * * The `USE MCP` commitment allows to specify an MCP server URL which the agent will connect to * for retrieving additional instructions and actions. * * The content following `USE MCP` is the URL of the MCP server. * * Example usage in agent source: * * ```book * USE MCP http://mcp-server-url.com * ``` * * @private [🪔] Maybe export the commitments through some package */ export declare class UseMcpCommitmentDefinition extends BaseCommitmentDefinition<'USE MCP'> { constructor(); /** * Short one-line description of USE MCP. */ get description(): string; /** * Icon for this commitment. */ get icon(): string; /** * Markdown documentation for USE MCP commitment. */ get documentation(): string; applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements; }