返回文档
  • 准备搜索索引...
  • 搜索索引不可用
API 参考
  • API 参考
  • langgraph/prebuilt
  • createFunctionCallingExecutor

函数 createFunctionCallingExecutor

  • createFunctionCallingExecutor<Model>(__namedParameters): CompiledStateGraph<FunctionCallingExecutorState, Partial<FunctionCallingExecutorState>, typeof START | "agent" | "action">
  • 类型参数

    • Model extends object

    参数

    • __namedParameters: {
          model: Model;
          tools: (RunnableToolLike<ZodType<any, ZodTypeDef, any>, unknown> | StructuredToolInterface<ZodObjectAny>)[] | ToolExecutor;
      }
      • model: Model
      • tools: (RunnableToolLike<ZodType<any, ZodTypeDef, any>, unknown> | StructuredToolInterface<ZodObjectAny>)[] | ToolExecutor

    返回值 CompiledStateGraph<FunctionCallingExecutorState, Partial<FunctionCallingExecutorState>, typeof START | "agent" | "action">

    已弃用

    请使用 createReactAgent 替代,它支持工具调用。

    • 定义于 libs/langgraph/dist/prebuilt/chat_agent_executor.d.ts:12

设置

成员可见性

主题

API 参考
  • 加载中...

使用 TypeDoc 生成