UNPKG

@promptbook/remote-server

Version:

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

45 lines (44 loc) 1.7 kB
import type { string_book } from '../../book-2.0/agent-source/string_book'; import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements'; import type { CommonToolsOptions } from '../../execution/CommonToolsOptions'; import type { ExecutionTools } from '../../execution/ExecutionTools'; import type { Updatable } from '../../types/Updatable'; import { Agent } from './Agent'; /** * Options for creating an Agent */ export type AgentOptions = CommonToolsOptions & { /** * The execution tools available to the agent * * Here the agent has access to various LLM models, browser, scrapers, LibreOffice, tools, etc. */ executionTools: ExecutionTools; /** * How to manage OpenAI assistant/AgentKit preparation when using OpenAiAssistantExecutionTools * or OpenAiAgentKitExecutionTools. * * Use `external` when an external cache manager already created the assistant/AgentKit agent * and the agent should use it as-is. * * @default internal */ assistantPreparationMode?: 'internal' | 'external'; /** * The source of the agent */ agentSource: Updatable<string_book>; /** * Optional precomputed model requirements reused until `agentSource` changes. * * This keeps the actual runtime prompt aligned with server-prepared requirements * such as compact-reference-resolved `TEAM` tools. */ precomputedModelRequirements?: AgentModelRequirements; /** * Teacher agent for self-learning * * Note: If provided, the agent can do full self-learning from the teacher agent during its operation. */ teacherAgent: Agent | null; };