UNPKG

@promptbook/google

Version:

Promptbook: Turn your company's scattered knowledge into AI ready books

37 lines (36 loc) 1.3 kB
import type { string_book } from '../../book-2.0/agent-source/string_book'; 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>; /** * 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; };