• Type Parameters

    • Model extends object

    Parameters

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

    Returns CompiledStateGraph<
        FunctionCallingExecutorState,
        Partial<FunctionCallingExecutorState>,
        "__start__" | "agent" | "action",
    >

    Use createReactAgent instead with tool calling.