diff --git a/packages/website/src/pages/docs/integration/configuration/page.tsx b/packages/website/src/pages/docs/integration/configuration/page.tsx index 6ff1cc0..491c7f6 100644 --- a/packages/website/src/pages/docs/integration/configuration/page.tsx +++ b/packages/website/src/pages/docs/integration/configuration/page.tsx @@ -61,6 +61,27 @@ export default function Configuration() { code={`interface AgentConfig { language?: 'en-US' | 'zh-CN' + /** + * Whether to prompt for next task after task completion + * @default true + */ + promptForNextTask?: boolean + + /** + * Enable the UI panel for visual feedback and user interaction + * When disabled, the panel will not be created and all UI operations will be skipped. + * Useful for automated testing or when integrating PageAgent as a library. + * @default true + */ + enablePanel?: boolean + + /** + * Enable the ask_user tool for agent to ask questions + * When disabled, the agent cannot ask user questions during execution. + * @default true + */ + enableAskUser?: boolean + /** Custom tools to extend or override built-in tools */ customTools?: Record @@ -140,6 +161,39 @@ interface PageControllerConfig extends DomConfig { code={`type PageAgentConfig = LLMConfig & AgentConfig & PageControllerConfig`} /> + + {/* Programmatic Usage Example */} +
+

+ {isZh ? '程序化使用配置' : 'Programmatic Usage'} +

+

+ {isZh + ? '对于程序化集成场景,可以禁用 UI。' + : 'For programmatic integration, you can disable UI.'} +

+ +
) }