(tools: StructuredToolInterface[])
| 764 | }) |
| 765 | |
| 766 | const renderTextDescription = (tools: StructuredToolInterface[]): string => { |
| 767 | return tools.map((tool) => `${tool.name}: ${tool.description}`).join('\n') |
| 768 | } |
| 769 | |
| 770 | export const createReactAgent = async ({ llm, tools, prompt }: CreateReactAgentParams) => { |
| 771 | const missingVariables = ['tools', 'tool_names', 'agent_scratchpad'].filter((v) => !prompt.inputVariables.includes(v)) |