faf_chat
Conduct a guided interview to build project.faf through interactive conversation, helping structure project requirements and specifications.
Instructions
Guided interview to build project.faf
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/handlers/tools.ts:927-960 (handler)The handleFafChat method implements the tool logic by calling the engineAdapter's chat engine.
private async handleFafChat(_args: any): Promise<CallToolResult> { try { const result = await this.engineAdapter.callEngine('chat'); if (!result.success) { return { content: [{ type: 'text', text: `Error running faf chat: ${result.error || 'Unknown error'}` }], isError: true }; } // Format the response text const responseText = typeof result.data === 'string' ? result.data : result.data?.output || JSON.stringify(result.data, null, 2); return { content: [{ type: 'text', text: responseText }] }; } catch (error) { return { content: [{ type: 'text', text: `Error running faf chat: ${error instanceof Error ? error.message : String(error)}` }], isError: true }; } - src/handlers/tools.ts:193-199 (registration)Registration of the faf_chat tool in the tools list.
name: 'faf_chat', description: 'Guided interview to build project.faf', inputSchema: { type: 'object', properties: {}, } }, - src/handlers/tool-types.ts:68-70 (schema)Definition of the FafChatArgs interface.
export interface FafChatArgs { prompt?: string; }